Mercurial > hg > svapp
comparison 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 |
comparison
equal
deleted
inserted
replaced
569:1cc23cee4ebf | 570:6f54789f3127 |
---|---|
302 | 302 |
303 void sampleRateMismatch(sv_samplerate_t requested, | 303 void sampleRateMismatch(sv_samplerate_t requested, |
304 sv_samplerate_t available, | 304 sv_samplerate_t available, |
305 bool willResample); | 305 bool willResample); |
306 | 306 |
307 void channelCountIncreased(); | 307 void channelCountIncreased(int count); // target channel count (see getTargetChannelCount()) |
308 | 308 |
309 void audioOverloadPluginDisabled(); | 309 void audioOverloadPluginDisabled(); |
310 void audioTimeStretchMultiChannelDisabled(); | 310 void audioTimeStretchMultiChannelDisabled(); |
311 | 311 |
312 void activity(QString); | 312 void activity(QString); |