I am getting the following error when I click a cell in my table view.
The operation couldn’t be completed. (OSStatus error 2003334207
Only the latest recording URL plays other wise I get the above error.
Bad thing is it was working fine before.
Not much to go on here in terms of details, but a couple of things:
- The error 2003334207 is actually a four character code 'wht?' (you can use the Programmer mode of the Calculator app to show the ASCII)
- It is defined in AudioFile.h as kAudioFileUnspecifiedError = 'wht?', // 0x7768743F, 2003334207
So while that's great, it's not very helpful since the definition of the error is simply - "An unspecified error has occurred"
It may be helpful if you moved the "broken" code out of your table view handing into somewhere else where debugging the playback logic could be a little easier - ensure that the AVAudioSession is correctly setup, the URL is correct if for example calling initWithContentsOfURL: is where AVAudioFilePlayer is returning the above error and so on.