From 90fcae8c4952a36ea3c15330785662c679846b65 Mon Sep 17 00:00:00 2001 From: Alex Birch Date: Thu, 1 Aug 2019 21:51:16 +0100 Subject: [PATCH] move one line of code to fix CoreAudio deadlock on macOS FL Studio --- Source/FluidSynthModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/FluidSynthModel.cpp b/Source/FluidSynthModel.cpp index e04845e..7eb3812 100644 --- a/Source/FluidSynthModel.cpp +++ b/Source/FluidSynthModel.cpp @@ -59,13 +59,13 @@ FluidSynthModel::~FluidSynthModel() { } void FluidSynthModel::initialise() { - settings = { new_fluid_settings(), delete_fluid_settings }; - // deactivate all audio drivers in fluidsynth to avoid FL Studio deadlock when initialising CoreAudio // after all: we only use fluidsynth to render blocks of audio. it doesn't output to audio driver. const char *DRV[] {NULL}; fluid_audio_driver_register(DRV); + settings = { new_fluid_settings(), delete_fluid_settings }; + // https://sourceforge.net/p/fluidsynth/wiki/FluidSettings/ #if JUCE_DEBUG fluid_settings_setint(settings.get(), "synth.verbose", 1);