we don't need an audio driver anyway

This commit is contained in:
Alex Birch 2018-04-17 22:10:01 +01:00
parent 782ec6f014
commit 6e88039085
No known key found for this signature in database
GPG Key ID: 305EB1F98D44ACBA

View File

@ -34,9 +34,14 @@ void FluidSynthModel::initialise() {
// delete_fluid_synth(synth);
// delete_fluid_settings(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();
// https://sourceforge.net/p/fluidsynth/wiki/FluidSettings/
fluid_settings_setstr(settings, "synth.verbose", "yes");
// fluid_settings_setstr(settings, "synth.verbose", "yes");
synth = new_fluid_synth(settings);
fluid_synth_set_sample_rate(synth, currentSampleRate);