Hi,
My app uses a custom subclass of AVAudioPlayerNode.
Occasionally, when I read the volume property, the call to self.volume never returns. If it happens in the main thread, the app's UI freezes, but the app continues to play sound and the other threads appear to be running.
If it happens while I'm debugging, I can pause the app and see the stack trace, which looks like this:
0 __psynch_mutexwait
1 _pthread_mutex_lock_wait
2 _pthread_mutex_lock_slow
3 CAMutex::Lock()
4 -[AVAudioNode volume]
5 (the line of my code that refers to the volume property)
So it looks like the call to self.volume is causing the thread to wait on a lock that never becomes free.
Is this a bug in AVFoundation, or could something in my code be causing it?
Thanks,
Frank