diff audio/AudioCallbackPlaySource.cpp @ 509:7cf6f5501212 tony-2.0-integration

Trim suspend/resume calls
author Chris Cannam
date Wed, 14 Oct 2015 16:02:09 +0100
parents 39e94df71d24
children 83c60632bac0
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.cpp	Wed Oct 14 15:08:55 2015 +0100
+++ b/audio/AudioCallbackPlaySource.cpp	Wed Oct 14 16:02:09 2015 +0100
@@ -414,8 +414,6 @@
 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;
@@ -526,8 +524,6 @@
                        (m_lastCurrentFrame, m_sourceSampleRate).toText().c_str()));
     }
     m_lastCurrentFrame = 0;
-
-    if (m_target) m_target->suspend();
 }
 
 void