开发者

Current playing music file on cocosdenshion

开发者 https://www.devze.com 2023-03-26 17:47 出处:网络
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 us

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

精彩评论

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