Couldn't play system sound after switching to iOS 5

前端 未结 4 1360
失恋的感觉
失恋的感觉 2020-12-16 00:57

This is how I played a beep sound effect in iOS 4:

SystemSoundId beepOnSoundId;

CFURLRef soundUrl = CFBundleCopyResourceURL(
    CFBundleGet         


        
4条回答
  •  执笔经年
    2020-12-16 01:26

    This bug report could be related to your question, if you have an AVCaptureSession running.

    Under iOS 5, when using an AudioServicesPlaySystemSound call, it will not work when there is an active AVCaptureSession with an audio device active.

提交回复
热议问题