mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
remap: Use float constant instead of double
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
c0e0e7ea8c
commit
647d491653
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
vol = m->map_table_f[oc][ic];
|
||||||
|
|
||||||
if (vol <= 0.0)
|
if (vol <= 0.0f)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
d = (float *)dst + oc;
|
d = (float *)dst + oc;
|
||||||
s = (float *)src + ic;
|
s = (float *)src + ic;
|
||||||
|
|
||||||
if (vol >= 1.0) {
|
if (vol >= 1.0f) {
|
||||||
for (i = n; i > 0; i--, s += n_ic, d += n_oc)
|
for (i = n; i > 0; i--, s += n_ic, d += n_oc)
|
||||||
*d += *s;
|
*d += *s;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue