comparison 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
comparison
equal deleted inserted replaced
609:96b605673585 610:5ddcbc55b6a2
2550 2550
2551 void 2551 void
2552 MainWindowBase::audioChannelCountIncreased(int) 2552 MainWindowBase::audioChannelCountIncreased(int)
2553 { 2553 {
2554 recreateAudioIO(); 2554 recreateAudioIO();
2555
2556 if (m_recordTarget &&
2557 m_recordTarget->isRecording() &&
2558 m_audioIO) {
2559 SVCERR << "MainWindowBase::audioChannelCountIncreased: we were recording already, so resuming IO now" << endl;
2560 m_audioIO->resume();
2561 }
2555 } 2562 }
2556 2563
2557 WaveFileModel * 2564 WaveFileModel *
2558 MainWindowBase::getMainModel() 2565 MainWindowBase::getMainModel()
2559 { 2566 {