Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
alsa.4188
0017-test-pcm-Fix-generated-values-with-float-P...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0017-test-pcm-Fix-generated-values-with-float-PCM-format.patch of Package alsa.4188
From 9120f2de8608f49ee1cd4501b9eee39a1c71778f Mon Sep 17 00:00:00 2001 From: Christophe Lohr <christophe.lohr@cegetel.net> 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 <tiwai@suse.de> --- test/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pcm.c b/test/pcm.c index abb83e4c3014..18b61762b236 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.4.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor