mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-03 17:42:21 +00:00
Update the LADSPA sample rate if the rvoice mixer sample rate changes.
This commit is contained in:
parent
2c7e1696fd
commit
e05f1904d5
1 changed files with 6 additions and 0 deletions
|
@ -522,6 +522,12 @@ fluid_rvoice_mixer_set_samplerate(fluid_rvoice_mixer_t* mixer, fluid_real_t samp
|
|||
fluid_revmodel_samplerate_change(mixer->fx.reverb, samplerate);
|
||||
for (i=0; i < mixer->active_voices; i++)
|
||||
fluid_rvoice_set_output_rate(mixer->rvoices[i], samplerate);
|
||||
#if LADSPA
|
||||
if (mixer->ladspa_fx != NULL)
|
||||
{
|
||||
fluid_ladspa_set_sample_rate(mixer->ladspa_fx, samplerate);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue