[SCM] calf/master: Do not use fluid_synth_set_sample_rate. This is untested.
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:32 UTC 2013
The following commit has been merged in the master branch:
commit dde53033ece77806c301a42dba402e0247ecb34c
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Mon Dec 27 12:59:42 2010 +0000
Do not use fluid_synth_set_sample_rate. This is untested.
diff --git a/src/fluidsynth.cpp b/src/fluidsynth.cpp
index 31e7a86..6279434 100644
--- a/src/fluidsynth.cpp
+++ b/src/fluidsynth.cpp
@@ -55,10 +55,10 @@ fluid_synth_t *fluidsynth_audio_module::create_synth(int &new_sfid)
{
set_preset = -1;
fluid_settings_t *new_settings = new_fluid_settings();
+ fluid_settings_setnum(new_settings, "synth.sample-rate", srate);
fluid_synth_t *s = new_fluid_synth(new_settings);
if (!soundfont.empty())
{
- fluid_synth_set_sample_rate(s, srate);
int sid = fluid_synth_sfload(s, soundfont.c_str(), 1);
if (sid == -1)
{
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list