Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 786:1089d65c585d tip
Divert some debug output away from stderr
author | Chris Cannam |
---|---|
date | Fri, 14 Aug 2020 10:46:44 +0100 |
parents | 7bded7599874 |
children |
comparison
equal
deleted
inserted
replaced
785:e136dd3bb5c6 | 786:1089d65c585d |
---|---|
2601 | 2601 |
2602 if (m_audioMode == AUDIO_PLAYBACK_AND_RECORD) { | 2602 if (m_audioMode == AUDIO_PLAYBACK_AND_RECORD) { |
2603 m_audioIO = breakfastquay::AudioFactory:: | 2603 m_audioIO = breakfastquay::AudioFactory:: |
2604 createCallbackIO(m_recordTarget, source, preference, errorString); | 2604 createCallbackIO(m_recordTarget, source, preference, errorString); |
2605 if (m_audioIO) { | 2605 if (m_audioIO) { |
2606 SVCERR << "MainWindowBase::createAudioIO: Suspending on creation" << endl; | 2606 SVDEBUG << "MainWindowBase::createAudioIO: Suspending on creation" << endl; |
2607 m_audioIO->suspend(); // start in suspended state | 2607 m_audioIO->suspend(); // start in suspended state |
2608 m_playSource->setSystemPlaybackTarget(m_audioIO); | 2608 m_playSource->setSystemPlaybackTarget(m_audioIO); |
2609 } else { | 2609 } else { |
2610 // Failed to create audio I/O; this may just mean there is | 2610 // Failed to create audio I/O; this may just mean there is |
2611 // no record device, so fall through to see what happens | 2611 // no record device, so fall through to see what happens |
2616 | 2616 |
2617 if (!m_audioIO) { | 2617 if (!m_audioIO) { |
2618 m_playTarget = breakfastquay::AudioFactory:: | 2618 m_playTarget = breakfastquay::AudioFactory:: |
2619 createCallbackPlayTarget(source, preference, errorString); | 2619 createCallbackPlayTarget(source, preference, errorString); |
2620 if (m_playTarget) { | 2620 if (m_playTarget) { |
2621 SVCERR << "MainWindowBase::createAudioIO: Suspending on creation" << endl; | 2621 SVDEBUG << "MainWindowBase::createAudioIO: Suspending on creation" << endl; |
2622 m_playTarget->suspend(); // start in suspended state | 2622 m_playTarget->suspend(); // start in suspended state |
2623 m_playSource->setSystemPlaybackTarget(m_playTarget); | 2623 m_playSource->setSystemPlaybackTarget(m_playTarget); |
2624 } | 2624 } |
2625 } | 2625 } |
2626 | 2626 |
3768 | 3768 |
3769 if (!m_playSource) return; | 3769 if (!m_playSource) return; |
3770 | 3770 |
3771 m_playSource->stop(); | 3771 m_playSource->stop(); |
3772 | 3772 |
3773 SVCERR << "MainWindowBase::stop: suspending" << endl; | 3773 SVDEBUG << "MainWindowBase::stop: suspending" << endl; |
3774 | 3774 |
3775 if (m_audioIO) m_audioIO->suspend(); | 3775 if (m_audioIO) m_audioIO->suspend(); |
3776 else if (m_playTarget) m_playTarget->suspend(); | 3776 else if (m_playTarget) m_playTarget->suspend(); |
3777 | 3777 |
3778 if (m_paneStack && m_paneStack->getCurrentPane()) { | 3778 if (m_paneStack && m_paneStack->getCurrentPane()) { |