Browse Source

Fix juce engine drivers only be usable once

tags/1.9.4
falkTX 10 years ago
parent
commit
8ff9ee4c99
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      source/backend/engine/CarlaEngineJuce.cpp

+ 5
- 5
source/backend/engine/CarlaEngineJuce.cpp View File

@@ -48,16 +48,16 @@ struct JuceCleanup : public DeletedAtShutdown {
static void initJuceDevicesIfNeeded()
{
static AudioDeviceManager sDeviceManager;
static bool needsInit = true;

if (! needsInit)
if (gDeviceTypes.size() != 0)
return;

needsInit = false;
new JuceCleanup();

sDeviceManager.createAudioDeviceTypes(gDeviceTypes);

CARLA_SAFE_ASSERT_RETURN(gDeviceTypes.size() != 0,);

new JuceCleanup();

// remove JACK from device list
for (int i=0, count=gDeviceTypes.size(); i < count; ++i)
{


Loading…
Cancel
Save