Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Jan 18, 2016
1 parent 3f04735 commit f1cd778
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/Exporter.c
Expand Up @@ -27,7 +27,7 @@ int main()
fluid_settings_setint(settings, "synth.threadsafe-api", 0);

fluid_synth_t* const synth = new_fluid_synth(settings);
fluid_synth_set_level(synth, 1.0f);
fluid_synth_set_gain(synth, 1.0f);
fluid_synth_set_polyphony(synth, 32);
fluid_synth_set_sample_rate(synth, 48000.0f);

Expand Down
4 changes: 2 additions & 2 deletions source/FluidPlug.c
Expand Up @@ -100,7 +100,7 @@ static LV2_Handle lv2_instantiate(const struct _LV2_Descriptor* descriptor, doub
if (synth == NULL)
goto cleanup_settings;

fluid_synth_set_level(synth, 1.0f);
fluid_synth_set_gain(synth, 1.0f);
fluid_synth_set_polyphony(synth, 32);
fluid_synth_set_sample_rate(synth, (float)sampleRate);

Expand Down Expand Up @@ -232,7 +232,7 @@ static void lv2_run(LV2_Handle instance, uint32_t frames)
data->needsReset = false;
}

fluid_synth_set_level(data->synth, *data->controlLevel);
fluid_synth_set_gain(data->synth, *data->controlLevel);

const float currentProgram_f = *data->controlProgram;
const int currentProgram_i = (int)(currentProgram_f+0.5f);
Expand Down

0 comments on commit f1cd778

Please sign in to comment.