[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/6] audio: consistency changes
From: |
Volker Rümelin |
Subject: |
[PATCH v2 3/6] audio: consistency changes |
Date: |
Sun, 8 Mar 2020 20:33:18 +0100 |
Change the clip_natural_float_from_mono() function in
audio/mixeng.c to be consistent with the clip_*_from_mono()
functions in audio/mixeng_template.h.
Signed-off-by: Volker Rümelin <address@hidden>
---
audio/mixeng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/audio/mixeng.c b/audio/mixeng.c
index b57fad83bf..725b529be7 100644
--- a/audio/mixeng.c
+++ b/audio/mixeng.c
@@ -316,7 +316,7 @@ static void clip_natural_float_from_mono(void *dst, const
struct st_sample *src,
float *out = (float *)dst;
while (samples--) {
- *out++ = CLIP_NATURAL_FLOAT(src->l) + CLIP_NATURAL_FLOAT(src->r);
+ *out++ = CLIP_NATURAL_FLOAT(src->l + src->r);
src++;
}
}
--
2.16.4
- [PATCH v2 0/6] mostly changes related to audio float samples, Volker Rümelin, 2020/03/08
- [PATCH v2 1/6] qapi/audio: add documentation for AudioFormat, Volker Rümelin, 2020/03/08
- [PATCH v2 4/6] audio: change mixing engine float range to [-1.f, 1.f], Volker Rümelin, 2020/03/08
- [PATCH v2 3/6] audio: consistency changes,
Volker Rümelin <=
- [PATCH v2 2/6] audio: change naming scheme of FLOAT_CONV macros, Volker Rümelin, 2020/03/08
- [PATCH v2 5/6] audio: fix saturation nonlinearity in clip_* functions, Volker Rümelin, 2020/03/08
- [PATCH v2 6/6] audio: add audiodev format=f32 option documentation, Volker Rümelin, 2020/03/08
- Re: [PATCH v2 0/6] mostly changes related to audio float samples, Gerd Hoffmann, 2020/03/16