diff options
| author | Tim E. Real <termtech@rogers.com> | 2012-12-07 07:41:24 +0000 | 
|---|---|---|
| committer | Tim E. Real <termtech@rogers.com> | 2012-12-07 07:41:24 +0000 | 
| commit | 0a919a7b36ee4b58e5ce3628a2d8b97bf751d2c4 (patch) | |
| tree | 335fccddc229d2d0299095dfe46daae614188c79 /muse2/muse/osc.cpp | |
| parent | a9cef6554f73892b6c7ff6a7a44d8e72f06aa16f (diff) | |
Feature: Native VST instruments support. PLEASE SEE ChangeLog.
Diffstat (limited to 'muse2/muse/osc.cpp')
| -rw-r--r-- | muse2/muse/osc.cpp | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/muse2/muse/osc.cpp b/muse2/muse/osc.cpp index 381e4acc..0f15083b 100644 --- a/muse2/muse/osc.cpp +++ b/muse2/muse/osc.cpp @@ -173,12 +173,11 @@ int oscMessageHandler(const char* path, const char* types, lo_arg** argv,        const char* sub = strstr(p, ba.constData());        if(sub == NULL)           continue; -       -      // TODO: Fix this dynamic cast - it may be a slowdown. -      DssiSynthIF* instance = dynamic_cast<DssiSynthIF*>(synti->sif()); -      if(!instance) -        break; -         + +      if(!synti->sif() || !synti->synth() || synti->synth()->synthType() != MusECore::Synth::DSSI_SYNTH) +        continue; +      DssiSynthIF* instance = static_cast<DssiSynthIF*>(synti->sif()); +        p = sub + ba.length();        if (*p != '/' || *(p + 1) == 0)        {  | 
