It appears that this routine will wait until any outstanding stream callback completes. This appears to be the case regardless of whether or not the stream was originally opened with the FSOUND_NONBLOCKING flag.
Now this may not sound like a big deal, but my callback routine was coded to wait on a system lock.
Under certain application conditions, a different part of the application would stop the stream and then a close attempted. That code also would take out the same lock. Hence they (very very hard to find) deadlock situation occurred in rare circumstances, when the application will try and stop and close the stream just as the stream completed playing.
- ronzul asked 11 years ago
- You must login to post comments