From 43d33129903823d162df132ab9293a903e053776 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 4 May 2013 21:04:19 +0000 Subject: Ajout Copyright 2013 + amelioration capture pulse git-svn-id: file:///var/svn/2012-violon-leds/trunk@34 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- src/compute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/compute.c') 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 + Copyright (C) 2012-2013 Ludovic Pouzenc 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 -- cgit v1.2.3