diff audioio/AudioGenerator.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/AudioGenerator.cpp	Mon Mar 23 11:26:28 2015 +0000
+++ b/audioio/AudioGenerator.cpp	Tue Mar 24 16:41:38 2015 +0000
@@ -526,8 +526,9 @@
     sv_frame_t got = blocks * m_processingBlockSize;
 
 #ifdef DEBUG_AUDIO_GENERATOR
-    cout << "mixModel [clip]: frames " << frames
-	      << ", blocks " << blocks << endl;
+    cout << "mixModel [clip]: start " << startFrame << ", frames " << frames
+         << ", blocks " << blocks << ", have " << m_noteOffs.size()
+         << " note-offs" << endl;
 #endif
 
     ClipMixer::NoteStart on;