Mercurial > hg > svapp
diff framework/MainWindowBase.cpp @ 499:a4d90cf2bb79 3.0-integration
Merge from recording branch
author | Chris Cannam |
---|---|
date | Mon, 12 Oct 2015 12:43:06 +0100 |
parents | 111e976f9ed4 cd9dec2f47e8 |
children | dcd2afbc1bb7 |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Thu Sep 17 13:46:07 2015 +0100 +++ b/framework/MainWindowBase.cpp Mon Oct 12 12:43:06 2015 +0100 @@ -2200,6 +2200,7 @@ createCallbackIO(m_recordTarget, m_playSource); m_audioIO->suspend(); // start in suspended state m_playSource->setSystemPlaybackTarget(m_audioIO); + m_recordTarget->setSystemRecordSource(m_audioIO); } else { m_playTarget = breakfastquay::AudioFactory:: createCallbackPlayTarget(m_playSource); @@ -2660,7 +2661,6 @@ QAction *action = qobject_cast<QAction *>(sender()); if (action) action->setChecked(false); } else { - if (m_audioIO) m_audioIO->resume(); playbackFrameChanged(m_viewManager->getPlaybackFrame()); m_playSource->play(m_viewManager->getPlaybackFrame()); } @@ -2692,8 +2692,6 @@ if (!checkSaveModified()) return; } - if (m_audioIO) m_audioIO->resume(); - WritableWaveFileModel *model = m_recordTarget->startRecording(); if (!model) { cerr << "ERROR: MainWindowBase::record: Recording failed" << endl; @@ -3025,8 +3023,6 @@ m_playSource->stop(); - if (m_audioIO) m_audioIO->suspend(); - if (m_paneStack && m_paneStack->getCurrentPane()) { updateVisibleRangeDisplay(m_paneStack->getCurrentPane()); } else {