we don't need an audio driver anyway
This commit is contained in:
parent
782ec6f014
commit
6e88039085
|
@ -34,9 +34,14 @@ void FluidSynthModel::initialise() {
|
||||||
// delete_fluid_synth(synth);
|
// delete_fluid_synth(synth);
|
||||||
// delete_fluid_settings(settings);
|
// 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();
|
settings = new_fluid_settings();
|
||||||
// https://sourceforge.net/p/fluidsynth/wiki/FluidSettings/
|
// 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);
|
synth = new_fluid_synth(settings);
|
||||||
fluid_synth_set_sample_rate(synth, currentSampleRate);
|
fluid_synth_set_sample_rate(synth, currentSampleRate);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user