aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--toolame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolame.c b/toolame.c
index 5d522df..995e352 100644
--- a/toolame.c
+++ b/toolame.c
@@ -236,10 +236,10 @@ int main (int argc, char **argv)
}
unsigned long j;
- for (j = 0; j < samps_read; j++) {
+ for (j = 0; j < 1152; j++) {
peak_left = MAX(peak_left, buffer[0][j]);
}
- for (j = 0; j < samps_read; j++) {
+ for (j = 0; j < 1152; j++) {
peak_right = MAX(peak_right, buffer[1][j]);
}