mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
remap: Don't use PA_VOLUME_NORM
remapping operates on channel contributions, not volumes Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
f975aad1d3
commit
fde3626b77
3 changed files with 3 additions and 3 deletions
|
|
@ -169,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_i[0][0] == PA_VOLUME_NORM && m->map_table_i[1][0] == PA_VOLUME_NORM) {
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ static void init_remap_mmx(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_i[0][0] == PA_VOLUME_NORM && m->map_table_i[1][0] == PA_VOLUME_NORM) {
|
||||
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_mmx;
|
||||
pa_log_info("Using MMX mono to stereo remapping");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ static void init_remap_sse2(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_i[0][0] == PA_VOLUME_NORM && m->map_table_i[1][0] == PA_VOLUME_NORM) {
|
||||
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_sse2;
|
||||
pa_log_info("Using SSE2 mono to stereo remapping");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue