diff audio/AudioCallbackPlaySource.cpp @ 540:0d5c3abc9658 3.0-integration

Delete audio I/O objects in a fixed order
author Chris Cannam
date Wed, 30 Nov 2016 11:44:40 +0000
parents 83c60632bac0
children 167d37937436
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.cpp	Fri Nov 25 10:08:52 2016 +0000
+++ b/audio/AudioCallbackPlaySource.cpp	Wed Nov 30 11:44:40 2016 +0000
@@ -414,6 +414,8 @@
 void
 AudioCallbackPlaySource::play(sv_frame_t startFrame)
 {
+    if (!m_target) return;
+    
     if (!m_sourceSampleRate) {
         cerr << "AudioCallbackPlaySource::play: No source sample rate available, not playing" << endl;
         return;