Skip to content

Commit

Permalink
Replace the hard-coded 44100Hz with synth's sample_rate (#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan-xy authored Jan 10, 2025
1 parent d805f0b commit 8f6011f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/synth/fluid_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -5211,7 +5211,7 @@ fluid_synth_alloc_voice_LOCAL(fluid_synth_t *synth, fluid_sample_t *sample, int

FLUID_LOG(FLUID_INFO, "noteon\t%d\t%d\t%d\t%05d\t%.3f\t%.3f\t%.3f\t%d",
chan, key, vel, synth->storeid,
(float) ticks / 44100.0f,
(float) ticks / synth->sample_rate,
(fluid_curtime() - synth->start) / 1000.0f,
0.0f,
k);
Expand Down

0 comments on commit 8f6011f

Please sign in to comment.