From d7f4820023196bfc7d40ef5fa134bc46a6e55849 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Wed, 9 Feb 2011 22:37:27 +0000 Subject: Mini MIDI overhaul. Please see ChangeLog. --- muse2/muse/plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'muse2/muse/plugin.cpp') diff --git a/muse2/muse/plugin.cpp b/muse2/muse/plugin.cpp index 5bacf092..179708ea 100644 --- a/muse2/muse/plugin.cpp +++ b/muse2/muse/plugin.cpp @@ -2454,6 +2454,10 @@ int PluginI::oscControl(unsigned long port, float value) OscControlValue cv; //cv.idx = cport; cv.value = value; + // Time-stamp the event. Looks like no choice but to use the (possibly slow) call to gettimeofday via timestamp(), + // because these are asynchronous events arriving from OSC. timestamp() is more or less an estimate of the + // current frame. (This is exactly how ALSA events are treated when they arrive in our ALSA driver.) p4.0.15 Tim. + cv.frame = audio->timestamp(); if(cfifo->put(cv)) { fprintf(stderr, "PluginI::oscControl: fifo overflow: in control number:%ld\n", cport); -- cgit v1.2.3