FluidSynth: Add dynamic sample loading
This commit is contained in:
@@ -161,6 +161,7 @@ fluidsynth_init(UNUSED(const device_t *info))
|
||||
|
||||
fluid_settings_setnum(data->settings, "synth.sample-rate", 44100);
|
||||
fluid_settings_setnum(data->settings, "synth.gain", device_get_config_int("output_gain") / 100.0f);
|
||||
fluid_settings_setint(data->settings, "synth.dynamic-sample-loading", device_get_config_int("dynamic_sample_loading"));
|
||||
|
||||
data->synth = new_fluid_synth(data->settings);
|
||||
|
||||
@@ -509,6 +510,17 @@ static const device_config_t fluidsynth_config[] = {
|
||||
},
|
||||
.bios = { { 0 } }
|
||||
},
|
||||
{
|
||||
.name = "dynamic_sample_loading",
|
||||
.description = "Dynamic Sample Loading",
|
||||
.type = CONFIG_BINARY,
|
||||
.default_string = NULL,
|
||||
.default_int = 0,
|
||||
.file_filter = NULL,
|
||||
.spinner = { 0 },
|
||||
.selection = { { 0 } },
|
||||
.bios = { { 0 } }
|
||||
},
|
||||
{ .name = "", .description = "", .type = CONFIG_END }
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user