Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 610:5ddcbc55b6a2
If audio IO is recreated due to channel count change when recording, make sure it's recreated ready-resumed if we were recording already
author | Chris Cannam |
---|---|
date | Wed, 08 Aug 2018 15:18:52 +0100 |
parents | 523dc97f027d |
children | 37b23e50832b |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Wed Aug 08 15:17:36 2018 +0100 +++ b/framework/MainWindowBase.cpp Wed Aug 08 15:18:52 2018 +0100 @@ -2552,6 +2552,13 @@ MainWindowBase::audioChannelCountIncreased(int) { recreateAudioIO(); + + if (m_recordTarget && + m_recordTarget->isRecording() && + m_audioIO) { + SVCERR << "MainWindowBase::audioChannelCountIncreased: we were recording already, so resuming IO now" << endl; + m_audioIO->resume(); + } } WaveFileModel *