From 9120f2de8608f49ee1cd4501b9eee39a1c71778f Mon Sep 17 00:00:00 2001 From: Christophe Lohr Date: Mon, 1 Jun 2015 13:41:49 +0200 Subject: [PATCH] test/pcm: Fix generated values with float PCM format The float format should be generated [-1.0..1.0]. Signed-off-by: Takashi Iwai --- test/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.1