开发者

Current playing music file on cocosdenshion

Is there any way or method to find out if there is any file playing on with simpleaudioengine and if there is some开发者_如何转开发 file already running then what is that file.


Let's guess you are using method

-(void) playBackgroundMusic:(NSString*) filePath;

the framework use for this method AVAudioPlayer which has a property "playing" So you can easily write a method which return this BOOL property.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜