[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] Sample Rate
From: |
David Henningsson |
Subject: |
Re: [fluid-dev] Sample Rate |
Date: |
Fri, 01 Jan 2010 19:43:40 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Nils Hammerfest wrote:
> Let me hijack this topic.
> This is a situation with Denemos built-in fluidsynth. Version is 1.1.1
>
> We have a preferences menu in Denemo where you can specify the periodsize and
> samplerate.
> My JACKd runs @ 96000 and I set Denemo/Fluidsynth to 96k, too.
> This is the terminal output. First three lines are from Denemo to verify that
> the preferences are saved:
>
> Version 0_8_11
> Setting sample rate 96000
> Setting audio.period-size to 256
> fluidsynth: warning: Jack sample rate mismatch, expect tuning issues
> (synth.sample-rate=44100, jackd=96000)
>
> And its true, I get the tuning issues :(
>
> However. Using fluidsynth as standalone with this parameters and just any
> midi it works fine.
> fluidsynth -a jack -m jack -r 96000 .sc-55.sf2 Opener.mid
>
> The messages above are produced with this. Do you see anything wrong here?
>
> fluid_settings_setint(settings, "synth.sample-rate" ,
> Denemo.prefs.fluidsynth_sample_rate);
> g_print("Setting sample rate %d\n", Denemo.prefs.fluidsynth_sample_rate);
I believe synth.sample-rate is a double, so use setnum instead of
setint. And make sure you set it before the new_fluid_synth(settings) call.
Btw, this is a real gotcha. We (as in the FluidSynth developers) should
make sure setint works with doubles as well.
// David