Hello, I hope it's not a FAQ...
is it possible to play two loops at the same time?
thanks
MandarX
A fast, easy to use, free, and community supported 2D game engine
Hello, I hope it's not a FAQ...
is it possible to play two loops at the same time?
thanks
MandarX
You can have up to 32 simultaneous loops if you want. The best way is to create a CDSoundSource object for each loop, set the looping property to YES and then call the play method to get the loop to start.
-(CDSoundSource *) soundSourceForFile:(NSString*) filePath;thanks I'll try!!!
When I add a CDSoundSource * object I get the error:
expected specifier-qualifier-list before 'CDSoundSource'
should I import some library??
thanks
MandarX
You should include SimpleAudioEngine.h.
I did but I get the error
MandarX
I think you need the CDAudioManager.h-header file.
It is not necessary to import CDAudioManager.h as that is already imported by SimpleAudioEngine.h.
Could it be a version problem? Maybe, I have had people not update their CocosDenshion code even though they have updated cocos2d. It should be pretty easy to check though, look in SimpleAudioEngine.h - if the soundSourceForFile method is not defined then obviously you have the wrong version.
You have the source code and an example (FadeToGrey), you should be able to work it out. If you can't maybe try XCode 4.0 - that will tell you how to fix your problems.
Just updated to the latest version! It works fine,
thanks!
MandarX
You must log in to post.