Post

Replies

Boosts

Views

Activity

What are the conditions under which the play method of AVAudioPlayer returns false?
My application uses AVAudioPlayer to play sound. But lately, when I play a sound, it returns a failure. Restarting the application will fix it temporarily, but it will immediately return false. I read the docs but couldn't figure out the exact reason for returning false. https://developer.apple.com/documentation/avfaudio/avaudioplayer/1387388-play Can anyone please tell me what causes false to be returned?
1
0
546
Jul ’21