开发者

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

开发者 https://www.devze.com 2023-03-23 06:14 出处:网络
In my game one audio is paying using [[SimpleAudioEngine sharedEngine]playeffect:@\"audio.aac\"]; function .

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

精彩评论

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