[pulseaudio-discuss] [PATCH v2 06/12] remap: Use float constant instead of double
Peter Meerwald
pmeerw at pmeerw.net
Sun Apr 27 14:26:23 PDT 2014
From: Peter Meerwald <p.meerwald at bct-electronic.com>
Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
src/pulsecore/remap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/pulsecore/remap.c b/src/pulsecore/remap.c
index 4108fdd..a08f5a6 100644
--- a/src/pulsecore/remap.c
+++ b/src/pulsecore/remap.c
@@ -120,13 +120,13 @@ static void remap_channels_matrix_float32ne_c(pa_remap_t *m, void *dst, const vo
vol = m->map_table_f[oc][ic];
- if (vol <= 0.0)
+ if (vol <= 0.0f)
continue;
d = (float *)dst + oc;
s = (float *)src + ic;
- if (vol >= 1.0) {
+ if (vol >= 1.0f) {
for (i = n; i > 0; i--, s += n_ic, d += n_oc)
*d += *s;
} else {
--
1.9.1
More information about the pulseaudio-discuss
mailing list