Re: [Audacity-devel] Fixed Audio I/O race conditions
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Joshua H. <jo...@re...> - 2003-05-13 20:16:27
|
On Mon, 2003-05-12 at 22:34, Dominic Mazzoni wrote: > I discovered that some of the Audio I/O race conditions were > caused because classes were calling IsStreamActive to determine > if it was safe to start a new stream or do an editing operation, > when actually there was no good call to determine that (since > AudioIO can be "stopped" in a PortAudio sense, but still busy > reading/writing from WaveTracks). I added (back) a method > IsBusy that returns true if it's busy _at all_, and replaced > a few calls to IsStreamActive with that. I also made sure that > StartStream doesn't ever start a new stream until the last one > really has finished - that was another race. Great, I'm really glad you've managed to make things more stable. I don't have the time or energy to really think through this right now, but I trust you've done the right thing. I appreciate you being really thorough about making sure your fix is the right fix and makes sense. Josh |