mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
test/pcm: Fix generated values with float PCM format
The float format should be generated [-1.0..1.0]. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
67f73b0fab
commit
9120f2de86
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue