From: Christophe Lohr Date: Mon, 1 Jun 2015 11:41:49 +0000 (+0200) Subject: test/pcm: Fix generated values with float PCM format X-Git-Tag: v1.1.0~72 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=9120f2de8608f49ee1cd4501b9eee39a1c71778f;p=alsa-lib.git test/pcm: Fix generated values with float PCM format The float format should be generated [-1.0..1.0]. Signed-off-by: Takashi Iwai --- diff --git a/test/pcm.c b/test/pcm.c index abb83e4c..18b61762 100644 --- a/test/pcm.c +++ b/test/pcm.c @@ -68,7 +68,7 @@ static void generate_sine(const snd_pcm_channel_area_t *areas, } fval; int res, i; if (is_float) { - fval.f = sin(phase) * maxval; + fval.f = sin(phase); res = fval.i; } else res = sin(phase) * maxval;