]> code.delx.au - pulseaudio/commit
remap: fix check when to apply specialized code path
authorPeter Meerwald <p.meerwald@bct-electronic.com>
Thu, 28 Mar 2013 13:46:49 +0000 (14:46 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 29 Mar 2013 08:48:26 +0000 (10:48 +0200)
commit578d2ce5c8affbd0f8268085d709081f62521706
treec094ce79ebbb72e42aaa585bde68fc8040efd62b
parent1d045af0a224ed92d9903da5d6c2aa6dd485db3b
remap: fix check when to apply specialized code path

the specialized code path just duplicate samples, so are only
applicable if the volume in map_table is == 1.0 (or == 0x10000);
don't use them for volumes >= 1.0

compare the integer version of the volume stored in map_table;
comparing floats is ugly (als leads to compiler warnings)

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
src/pulsecore/remap.c
src/pulsecore/remap_mmx.c
src/pulsecore/remap_sse.c