Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WARNING: 997: Failure to setup sound, err = -50

Tags:

xcode

ios9

i'm getting this message WARNING: 997: Failure to setup sound, err = -50 when I attempt to play a sound file. The sound plays but I don't understand the message. This is new to iOS 9 and xcode 7 Any suggestions? Thanks.

like image 568
vboombatz Avatar asked Sep 20 '15 19:09

vboombatz


1 Answers

Its happened because you have this line :

 AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))

You need to disable it.

Good luck!

like image 154
omer15 Avatar answered Sep 24 '22 08:09

omer15