Browse Source

Fix VST UI bridges

tags/1.9.5
falkTX 10 years ago
parent
commit
53f5902f5f
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      source/bridges-ui/CarlaBridgeUI-VST.cpp

+ 4
- 3
source/bridges-ui/CarlaBridgeUI-VST.cpp View File

@@ -525,9 +525,7 @@ int main(int argc, char* argv[])
const bool useOsc = std::strcmp(oscUrl, "null");

// try to get sampleRate value
const char* const sampleRateStr = getenv("CARLA_SAMPLE_RATE");

if (sampleRateStr)
if (const char* const sampleRateStr = getenv("CARLA_SAMPLE_RATE"))
sampleRate = atof(sampleRateStr);

// Init VST client
@@ -535,7 +533,10 @@ int main(int argc, char* argv[])

// Init OSC
if (useOsc)
{
client.oscInit(oscUrl);
client.sendOscUpdate();
}

// Load UI
int ret;


Loading…
Cancel
Save