summaryrefslogtreecommitdiff
path: root/src/compute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compute.c')
-rw-r--r--src/compute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compute.c b/src/compute.c
index e574838..8ea0afb 100644
--- a/src/compute.c
+++ b/src/compute.c
@@ -1,6 +1,6 @@
/*
Instru2Light - Illumine un instrument de musique en temps réel
- Copyright (C) 2012 Ludovic Pouzenc <lpouzenc@gmail.com>
+ Copyright (C) 2012-2013 Ludovic Pouzenc <lpouzenc@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,11 +34,11 @@ float compute_level(const float *data, size_t nsamples, int rate) {
int f, min_f_index, max_f_index;
if (nsamples >= MAX_SAMPLES) {
- printf("WARN : nsamples >= MAX_SAMPLES : %i >= %i\n", nsamples, MAX_SAMPLES);
+ printf("WARN : nsamples >= MAX_SAMPLES : %zu >= %i\n", nsamples, MAX_SAMPLES);
nsamples=MAX_SAMPLES;
}
if (nsamples < MIN_SAMPLES) {
- printf("WARN : nsamples < MIN_SAMPLES : %i >= %i\n", nsamples, MIN_SAMPLES);
+ printf("WARN : nsamples < MIN_SAMPLES : %zu >= %i\n", nsamples, MIN_SAMPLES);
return -120.f;
}
/* Replicate with symmetry the sound to obtain an input buffer of the minimal len