Re: Locking the CoreAudio thread
Re: Locking the CoreAudio thread
- Subject: Re: Locking the CoreAudio thread
- From: "Timothy J. Wood" <email@hidden>
- Date: Fri, 18 Jan 2002 13:39:28 -0800
On Friday, January 18, 2002, at 01:05 PM, Jeff Moore wrote:
[...]
I don't advise blocking the HAL's IOThread. You will get timing
anomalies
that result in lost data. This is why there are no such locks you can
take
to prevent the HAL (and therefore the Sound Manager) from calling you.
[...]
Yeah, but in this case I'd rather get sound glitches than crash :)
At any rate, you need not worry since this doesn't work anyway. I
managed to block the CoreAudio thread during calls into the plugin, but
the plugin then needs to get the SoundManager/CoreAudio lock when it
attempts to start a sound (which would have been obvious if I'd thought
about it).
So, the whole app ends up deadlocking.
Oh well, I guess plugins will just have to be threadsafe -- time to
get in touch with Macromedia, I guess :)
-tim