summaryrefslogtreecommitdiff
path: root/muse2/muse
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2011-04-14 01:56:08 +0000
committerTim E. Real <termtech@rogers.com>2011-04-14 01:56:08 +0000
commit1d3741efd41bdcde88f05b210ebae218acc6967d (patch)
treee84277130c816543905bdd38ddae21657e946cb9 /muse2/muse
parent18af0454db620150bd409edd451b5dd1283880b0 (diff)
Another fix for FLAM GUI controls - 300ms delay before sending control values in PluginI::oscUpdate()
Diffstat (limited to 'muse2/muse')
-rw-r--r--muse2/muse/plugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/muse2/muse/plugin.cpp b/muse2/muse/plugin.cpp
index 0acb5f8b..06e72e4e 100644
--- a/muse2/muse/plugin.cpp
+++ b/muse2/muse/plugin.cpp
@@ -2538,12 +2538,17 @@ int PluginI::oscUpdate()
_oscIF.oscSendProgram(prog, bank);
*/
+ // FIXME: TESTING FLAM: I have to put a delay because flammer hasn't opened yet.
+ // How to make sure gui is ready?
+ usleep(300000);
+
// Send current control values.
//unsigned long ports = controlPorts;
for(int i = 0; i < controlPorts; ++i)
{
//unsigned long k = synth->pIdx(i);
//_oscIF.oscSendControl(k, controls[i]);
+ //printf("PluginI::oscUpdate() sending control:%d val:%f\n", i, controls[i].val);
_oscif.oscSendControl(controls[i].idx, controls[i].val);
// Avoid overloading the GUI if there are lots and lots of ports.
if((i+1) % 50 == 0)