From da430d9d1a06d0dc556af646a2b8ad8f31da8e5f Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Wed, 6 Oct 2010 06:15:45 +0000 Subject: [PATCH] Allow sample rates down to 8 kHz --- fluidsynth/src/synth/fluid_synth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluidsynth/src/synth/fluid_synth.c b/fluidsynth/src/synth/fluid_synth.c index d75dbf6c..3a220a9d 100644 --- a/fluidsynth/src/synth/fluid_synth.c +++ b/fluidsynth/src/synth/fluid_synth.c @@ -222,7 +222,7 @@ void fluid_synth_settings(fluid_settings_t* settings) fluid_settings_register_int(settings, "synth.effects-channels", 2, 2, 2, 0, NULL, NULL); fluid_settings_register_num(settings, "synth.sample-rate", - 44100.0f, 22050.0f, 96000.0f, + 44100.0f, 8000.0f, 96000.0f, 0, NULL, NULL); fluid_settings_register_int(settings, "synth.device-id", 0, 0, 126, 0, NULL, NULL); @@ -623,7 +623,7 @@ new_fluid_synth(fluid_settings_t *settings) /* register the callbacks */ 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_settings_register_num(settings, "synth.gain", 0.2f, 0.0f, 10.0f, 0,