mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-24 12:51:47 +00:00
Allow sample rates down to 8 kHz
This commit is contained in:
parent
25a3453eef
commit
da430d9d1a
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ void fluid_synth_settings(fluid_settings_t* settings)
|
||||||
fluid_settings_register_int(settings, "synth.effects-channels",
|
fluid_settings_register_int(settings, "synth.effects-channels",
|
||||||
2, 2, 2, 0, NULL, NULL);
|
2, 2, 2, 0, NULL, NULL);
|
||||||
fluid_settings_register_num(settings, "synth.sample-rate",
|
fluid_settings_register_num(settings, "synth.sample-rate",
|
||||||
44100.0f, 22050.0f, 96000.0f,
|
44100.0f, 8000.0f, 96000.0f,
|
||||||
0, NULL, NULL);
|
0, NULL, NULL);
|
||||||
fluid_settings_register_int(settings, "synth.device-id",
|
fluid_settings_register_int(settings, "synth.device-id",
|
||||||
0, 0, 126, 0, NULL, NULL);
|
0, 0, 126, 0, NULL, NULL);
|
||||||
|
@ -623,7 +623,7 @@ new_fluid_synth(fluid_settings_t *settings)
|
||||||
|
|
||||||
/* register the callbacks */
|
/* register the callbacks */
|
||||||
fluid_settings_register_num(settings, "synth.sample-rate",
|
fluid_settings_register_num(settings, "synth.sample-rate",
|
||||||
44100.0f, 22050.0f, 96000.0f, 0,
|
44100.0f, 8000.0f, 96000.0f, 0,
|
||||||
(fluid_num_update_t) fluid_synth_update_sample_rate, synth);
|
(fluid_num_update_t) fluid_synth_update_sample_rate, synth);
|
||||||
fluid_settings_register_num(settings, "synth.gain",
|
fluid_settings_register_num(settings, "synth.gain",
|
||||||
0.2f, 0.0f, 10.0f, 0,
|
0.2f, 0.0f, 10.0f, 0,
|
||||||
|
|
Loading…
Reference in a new issue