Mercurial > hg > svapp
diff audio/AudioCallbackPlaySource.h @ 570:6f54789f3127 3.0-integration
Fix race condition in first-time recording, where adding the recording wave model would prompt the audio play source to note that its channel count had increased (from 0 to, say, 2) and thus to cause the audio device to be reopened, stopping recording. Fix is to make this only happen if channel count increases beyond that of the device, which shouldn't happen in the recording case
author | Chris Cannam |
---|---|
date | Wed, 04 Jan 2017 11:48:03 +0000 |
parents | fc70aa31d8c5 |
children | b3c35447ef31 |
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.h Wed Jan 04 09:57:13 2017 +0000 +++ b/audio/AudioCallbackPlaySource.h Wed Jan 04 11:48:03 2017 +0000 @@ -304,7 +304,7 @@ sv_samplerate_t available, bool willResample); - void channelCountIncreased(); + void channelCountIncreased(int count); // target channel count (see getTargetChannelCount()) void audioOverloadPluginDisabled(); void audioTimeStretchMultiChannelDisabled();