[SCM] calf/master: Fluidsynth: set sample rate on a synth instance.
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:29 UTC 2013
The following commit has been merged in the master branch:
commit 55d04873211895e2fb13c0cbf8273cfdce8a9336
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Thu Dec 23 23:16:11 2010 +0000
Fluidsynth: set sample rate on a synth instance.
diff --git a/src/fluidsynth.cpp b/src/fluidsynth.cpp
index bbb034f..31e7a86 100644
--- a/src/fluidsynth.cpp
+++ b/src/fluidsynth.cpp
@@ -58,6 +58,7 @@ fluid_synth_t *fluidsynth_audio_module::create_synth(int &new_sfid)
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