X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/d7ce59de88eda4eb638f977975374359254731f7..fde3626b776ef06028c8d78e0326901a35c9ea11:/src/pulsecore/remap.c diff --git a/src/pulsecore/remap.c b/src/pulsecore/remap.c index b831f78c..da72a620 100644 --- a/src/pulsecore/remap.c +++ b/src/pulsecore/remap.c @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -168,7 +169,7 @@ static void init_remap_c(pa_remap_t *m) { /* find some common channel remappings, fall back to full matrix operation. */ if (n_ic == 1 && n_oc == 2 && - m->map_table_f[0][0] >= 1.0 && m->map_table_f[1][0] >= 1.0) { + m->map_table_i[0][0] == 0x10000 && m->map_table_i[1][0] == 0x10000) { m->do_remap = (pa_do_remap_func_t) remap_mono_to_stereo_c; pa_log_info("Using mono to stereo remapping"); } else { @@ -177,7 +178,6 @@ static void init_remap_c(pa_remap_t *m) { } } - /* default C implementation */ static pa_init_remap_func_t remap_func = init_remap_c;