Fix example code to deactivate reverb and chorus via fluid_settings_setint

This commit is contained in:
Marcus Weseloh 2019-01-11 15:21:37 +01:00 committed by derselbst
parent 241f676047
commit 53bed2d506

View file

@ -595,8 +595,8 @@ void createsynth()
{ {
fluid_settings_t* settings; fluid_settings_t* settings;
settings = new_fluid_settings(); settings = new_fluid_settings();
fluid_settings_setstr(settings, "synth.reverb.active", "yes"); fluid_settings_setint(settings, "synth.reverb.active", 0);
fluid_settings_setstr(settings, "synth.chorus.active", "no"); fluid_settings_setint(settings, "synth.chorus.active", 0);
synth = new_fluid_synth(settings); synth = new_fluid_synth(settings);
adriver = new_fluid_audio_driver(settings, synth); adriver = new_fluid_audio_driver(settings, synth);
sequencer = new_fluid_sequencer2(0); sequencer = new_fluid_sequencer2(0);