Skip to content
Snippets Groups Projects
Commit edf50ce0 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

fluidsynth: Don't use deprecated function

fluid_synth_set_sample_rate has been deprecated started from 2.1.0
parent fa712cc8
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,8 @@ static int Open (vlc_object_t *p_this)
return VLC_ENOMEM;
p_sys->settings = new_fluid_settings ();
fluid_settings_setnum(p_sys->settings, "synth.sample-rate",
p_dec->fmt_out.audio.i_rate);
p_sys->synth = new_fluid_synth (p_sys->settings);
p_sys->soundfont = -1;
......@@ -170,7 +172,6 @@ static int Open (vlc_object_t *p_this)
p_dec->fmt_out.audio.i_rate =
var_InheritInteger (p_this, "synth-sample-rate");;
fluid_synth_set_sample_rate (p_sys->synth, p_dec->fmt_out.audio.i_rate);
p_dec->fmt_out.audio.i_channels = 2;
p_dec->fmt_out.audio.i_physical_channels = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
p_dec->fmt_out.i_codec = VLC_CODEC_FL32;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment