filter->synth_polyphony = DEFAULT_SYNTH_POLYPHONY;
filter->settings = new_fluid_settings ();
+
+ /* http://www.fluidsynth.org/api/fluidsettings.xml */
+ fluid_settings_setnum (filter->settings, "synth.sample-rate", FLUID_DEC_RATE);
+
+ /* FIXME: Initialize after caps negotiation so we can support more rates */
filter->synth = new_fluid_synth (filter->settings);
filter->sf = -1;
"channels", G_TYPE_INT, 2,
"layout", G_TYPE_STRING, "interleaved", NULL);
- fluid_synth_set_sample_rate (fluiddec->synth, FLUID_DEC_RATE);
-
res = gst_pad_push_event (fluiddec->srcpad, gst_event_new_caps (caps));
gst_caps_unref (caps);
gst_event_unref (event);