diff audioio/AudioCallbackPlaySource.cpp @ 442:88ae0e53a5da tonioni

Reset audio generator when clearing ring buffers -- because we are about to jump back in time to the start of the buffered area, so any pending note-offs won't happen until much later, so we should drop the pending notes entirely
author Chris Cannam
date Tue, 24 Mar 2015 16:41:38 +0000
parents aa6fb3516e28
children c48bc6ddfe17
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Mon Mar 23 11:26:28 2015 +0000
+++ b/audioio/AudioCallbackPlaySource.cpp	Tue Mar 24 16:41:38 2015 +0000
@@ -388,6 +388,8 @@
 	m_writeBuffers->push_back(new RingBuffer<float>(m_ringBufferSize));
     }
 
+    m_audioGenerator->reset();
+    
 //    cout << "AudioCallbackPlaySource::clearRingBuffers: Created "
 //	      << count << " write buffers" << endl;