Hi,
I´ve already read the FAQs and the cookbook in the wiki and had a look at the example apps that come with cocos2D but I haven´t found the asnwer yet. Maybe you can help me...
For my current project (interactive children´s book for the iPad) I need the following features (basically different "layers" of audio):
- Background music (okay, so far no problem with cocosDenshion, I´ve got some examples of using background music and how to fade out and in, but here comes my question: Can I crossfade two pieces of background music? When the user switches the scene I want to fade out the background music of scene 1 and simultaneously fade in background music of scene 2 (without a break/silence in between).
- speech (voice over) - Here I plan to use the foreground music stuff in cocosDenshion (I guess it´s possible to play background music and use foreground music for the voice over?
- sound effects (when the user touches certain sprites/areas I want to play sound FX) - for that I use the sound effects in cocosDenshion, right?!
- an ambient sound layer (backgorund ambience, nature etc...) - what could I use here?
The user should be able to switch off the speech layer at least. So this definitely has to be a separate "track"/layer. I could possibly mix the backgound music and the ambience sound layer myself and use one already mixed audiolayer ot this (but then it´s important for me to do that crossfade thingy... see above)
I´m grateful for your help/ideas whatsoever...
Thanks a lot in advance,
Marco