git - iOS开发如何停止音效
巴扎黑
巴扎黑 2017-04-17 17:43:30
0
2
326

现在要做一个长按倒计时功能,倒计时的时候会显示语音提示3-2-1.但是如果在长按的途中突然松手,语音提示将马上失效。由于文件较小,所以使用了SystemSoundID音效。可是采用 AudioServicesDisposeSystemSoundID(_soundFileObject)方法暂停音效却无用。求播放途中停止音效的办法,谢谢

巴扎黑
巴扎黑

reply all(2)
PHPzhong

This method is also used in my company’s projects to play some simple sound effects
I have studied this before, but it seems that there are very few methods provided
It is recommended to switch back to AVPlayer

巴扎黑

soundID must exist in the singleton

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!