summaryrefslogtreecommitdiff
path: root/muse2
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
parent18af0454db620150bd409edd451b5dd1283880b0 (diff)
Another fix for FLAM GUI controls - 300ms delay before sending control values in PluginI::oscUpdate()
Diffstat (limited to 'muse2')
-rw-r--r--muse2/ChangeLog3
-rw-r--r--muse2/muse/plugin.cpp5
2 files changed, 8 insertions, 0 deletions
diff --git a/muse2/ChangeLog b/muse2/ChangeLog
index 9241b4cb..92b25883 100644
--- a/muse2/ChangeLog
+++ b/muse2/ChangeLog
@@ -1,3 +1,6 @@
+12.04.2011:
+ - Another fix for FLAM GUI controls - 300ms delay before sending control values in PluginI::oscUpdate(). (Tim)
+ Good enough? How to make sure (any) gui is really ready?
11.04.2011:
- Possible fix for FLAM GUI controls - send current control values in PluginI::oscUpdate().(Tim)
10.04.2011:
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)