diff audioio/AudioGenerator.h @ 235:1fcee2a1c03e sonification

Add queueExampleNote method to AudioCallbackPlaySource, providing a way to add a note to a special model which is mixed in outside of the normal playback flow. Currently mixing & generation happen in the play thread, which doesn't work very well -- buffer pending.
author Chris Cannam
date Fri, 24 Jun 2011 16:44:02 +0100
parents a98f1638c5ec
children
line wrap: on
line diff
--- a/audioio/AudioGenerator.h	Fri Jun 24 15:39:00 2011 +0100
+++ b/audioio/AudioGenerator.h	Fri Jun 24 16:44:02 2011 +0100
@@ -138,7 +138,8 @@
     static void setSampleDir(RealTimePluginInstance *plugin);
 
     virtual Notes getNotesFromModel
-    (Model *model, size_t startFrame, size_t frameCount);
+    (Model *model, size_t startFrame, size_t frameCount, 
+     size_t latency);
 
     virtual size_t mixDenseTimeValueModel
     (DenseTimeValueModel *model, size_t startFrame, size_t frameCount,