Reputation: 2050
It's possible to do stuff like:
Using CocosDenshion ?
If so, how ?.
If not...i have any alternatives, like a different sound engine or a certain class in the SDK that would allow me to do both things ?
Upvotes: 0
Views: 691
Reputation: 64477
You can play positional audio with CocosDenshion. See this tutorial for example.
Of course you can also loop sounds, if that's what you meant by question #2. You can always schedule a timer and stop or (better) fade out the sound after a specified amount of time. Programming the timer is of course up to you.
As for an alternative I can highly recommend ObjectAL. It does everything CocosDenshion does and a few things more, plus its well documented and comes with an excellent demo app with examples for playing positional audio, looping sounds, using stereo channels with panning and fading sounds.
If you don't want to fumble with including a static library in your project have a look at Kobold2D, it comes with ObjectAL (and Cocos2D) already setup and ready to use.
Upvotes: 1