Mercurial > hg > svapp
diff audio/AudioCallbackPlaySource.cpp @ 499:a4d90cf2bb79 3.0-integration
Merge from recording branch
author | Chris Cannam |
---|---|
date | Mon, 12 Oct 2015 12:43:06 +0100 |
parents | cd9dec2f47e8 |
children | 39e94df71d24 |
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.cpp Thu Sep 17 13:46:07 2015 +0100 +++ b/audio/AudioCallbackPlaySource.cpp Mon Oct 12 12:43:06 2015 +0100 @@ -407,6 +407,8 @@ void AudioCallbackPlaySource::play(sv_frame_t startFrame) { + if (m_target) m_target->resume(); + if (!m_sourceSampleRate) { cerr << "AudioCallbackPlaySource::play: No source sample rate available, not playing" << endl; return; @@ -518,6 +520,8 @@ (m_lastCurrentFrame, m_sourceSampleRate).toText().c_str())); } m_lastCurrentFrame = 0; + + if (m_target) m_target->suspend(); } void