开发者

How do you loop iPhone sounds?

Im working on a new game and i'm done but i just need to add some looping music, i have the so开发者_运维问答und file i want to loop, called theme.m4a How would you loop the music to play forever

Thank you!


Look at the Core Audio Reference this may help. AVAudioPlayerReference

When you get that just use the property:

@property NSInteger numberOfLoops;

Any negetive integer will infinitely loop it, 0 will play it once, and 1 will play it twice, etc.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜