nausea

curses audio visualizer
git clone git://git.2f30.org/nausea.git
Log | Files | Refs | README | LICENSE

commit e0f15caaad523d339d72d97a0c1a9587bf017190
parent 1141420a92fd0bfce6adba5faac840a91d65c4d3
Author: lostd <lostd@2f30.org>
Date:   Thu Nov 21 17:47:07 +0200

Correct loop range in update(), fixes artifacts

Diffstat:
spectrum.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/spectrum.c b/spectrum.c @@ -119,7 +119,7 @@ update(struct frame *fr) for (i = 0; i < nsamples / 2; i++) { fr->in[i] = 0.; - if (i < gotsamples) { + if (i < gotsamples / 2) { /* average the two channels */ fr->in[i] = fr->buf[i * 2 + 0]; fr->in[i] += fr->buf[i * 2 + 1];