Skip to content

Commit

Permalink
warning fix, avoid clipping by making the output lower
Browse files Browse the repository at this point in the history
  • Loading branch information
vampirefrog committed May 13, 2023
1 parent 676aa0e commit ef43886
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fmtoy_jack.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <jack/jack.h>
#include <asoundlib.h>
#include <alsa/asoundlib.h>

#include "cmdline.h"
#include "tools.h"
Expand Down Expand Up @@ -30,8 +30,8 @@ int process(jack_nframes_t nframes, void *arg) {
fmtoy_render(&fmtoy, nframes);

for(int i = 0; i < nframes; i++) {
buffers[0][i] = fmtoy.render_buf_l[i] / 8191.0f;
buffers[1][i] = fmtoy.render_buf_r[i] / 8191.0f;
buffers[0][i] = fmtoy.render_buf_l[i] / 32767.0f;
buffers[1][i] = fmtoy.render_buf_r[i] / 32767.0f;
}

return 0;
Expand Down

0 comments on commit ef43886

Please sign in to comment.