开发者

[[SimpleAudioEngine sharedEngine]playeffect:@""] overloading probleam

In my game one audio is paying using

[[SimpleAudioEngine sharedEngine]playeffect:@"audio.aac"]; function .

When I touch one sprite I played another audio which 1 sec.

My problem is that my first "audio.aac" stops when I touch sprite continuously for 8 - 10 times, any solution for it.

Help 开发者_开发技巧will be appreciated.


You have to use .wav 44100 Hz 16 bit stereo of .caff formats to play multiply sound effects at once.


You could use

[[SimpleAudioEngine]sharedEngine]playBackroundMusic:@"backgroundmusic.aac"];

to have the 2 minute clip loop while your playEffect runs separately.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜