iOS System Volume Control

随声附和 提交于 2019-12-23 01:43:24

问题


AudioServicesPlaySystemSound() is playing my sounds using ringer volume.

I want them to play according to system volume instead.

How to?


回答1:


You should use the AVFoundation Framework to play your sounds. Look into the AVAudioPlayer class.



来源:https://stackoverflow.com/questions/4328700/ios-system-volume-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!