Skip to content

Commit

Permalink
Replace the hard-coded 44100hz to sample_rate
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan-xy committed Jan 3, 2025
1 parent 33f5461 commit 4499e67
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 4499e67

Please sign in to comment.