![Swift中播放短音频,第1张 Swift中播放短音频,第1张](/aiimages/Swift%E4%B8%AD%E6%92%AD%E6%94%BE%E7%9F%AD%E9%9F%B3%E9%A2%91.png)
概述 var systemSoundID:SystemSoundID = 0; let path = Bundle.main.path(forResource: "composer_close", ofType: "wav") AudioServicesCreateSystemSoundID(NSURL.fileURL(withPath: path!) as C var systemSoundID:SystemSoundID = 0; let path = Bundle.main.path(forResource: "composer_close",ofType: "wav") AudioServicesCreateSystemSoundID(NSURL.fileURL(withPath: path!) as CFURL,&systemSoundID) AudioServicesPlayAlertSound(SystemSoundID(systemSoundID)) 总结
以上是内存溢出为你收集整理的Swift中播放短音频全部内容,希望文章能够帮你解决Swift中播放短音频所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)