changeset 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 96b605673585
children 37b23e50832b
files framework/MainWindowBase.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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 *