diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2013-05-04 21:04:19 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2013-05-04 21:04:19 +0000 |
commit | 43d33129903823d162df132ab9293a903e053776 (patch) | |
tree | 6052d08b32299483c3ac76c5925ede809e3db30f /src/compute.c | |
parent | 5dff05eaa5ca6360f19c51dc87f53d3831ea380a (diff) | |
download | 2012-violon-leds-43d33129903823d162df132ab9293a903e053776.tar.gz 2012-violon-leds-43d33129903823d162df132ab9293a903e053776.tar.bz2 2012-violon-leds-43d33129903823d162df132ab9293a903e053776.zip |
Ajout Copyright 2013 + amelioration capture pulseorigin/trunk
git-svn-id: file:///var/svn/2012-violon-leds/trunk@34 6be1fa4d-33ac-4c33-becc-79fcb3794bb6
Diffstat (limited to 'src/compute.c')
-rw-r--r-- | src/compute.c | 6 |
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 |