Does anyone have any ideas as to how I can sequence the playback of sound files with SimpleAudioEngine?
I need to dynamically put together a spoken sentence from multiple sound files. The way I’ve done it with cocos2d on Objective C is with a callback so I know when the file has finished playing, but it doesn’t seem possible in C++ (though it may be, I’m not really an expert!). The only way I can see to do it is to sequence the sounds with a CCDelay between each one of the length of the file, but I’m not sure if this is a good idea or not. I’ll write some code to see if this actually works, but wondering if anyone has any better ideas before I start?
Edit : Tried sequencing using the length of the sound file as a CCDelayTime, seems to work quite well. Is there a good reason not to do this? Will be sequencing about 3-4 files.