diff audioio/AudioCallbackPlaySource.cpp @ 29:dd2084d32652

* Create temporary directory, cleaned up on exit, and use it to store (inter alia) audio samples for the sample-player plugin. * Ensure newly added layers always have unique names * Make sure configure pairs for real-time plugins are stored in the configuration Xml along with parameter & program settings
author Chris Cannam
date Mon, 10 Apr 2006 13:52:32 +0000
parents ca4ee67b2358
children f38b8abd3540
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Thu Apr 06 12:29:02 2006 +0000
+++ b/audioio/AudioCallbackPlaySource.cpp	Mon Apr 10 13:52:32 2006 +0000
@@ -88,6 +88,8 @@
 
     delete m_writeBuffers;
 
+    delete m_audioGenerator;
+
     m_bufferScavenger.scavenge(true);
 }
 
@@ -117,8 +119,10 @@
 		  << " vs " << m_sourceSampleRate
 		  << "), playback will be wrong"
 		  << std::endl;
-        emit sampleRateMismatch(model->getSampleRate(), m_sourceSampleRate,
-                                false);
+        if (dynamic_cast<DenseTimeValueModel *>(model)) {
+            emit sampleRateMismatch(model->getSampleRate(), m_sourceSampleRate,
+                                    false);
+        }
     }
 
     size_t modelChannels = 1;