Ticket #239 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

Problem with audio muxing + remap-sink

Reported by: leleobhz Owned by: lennart
Milestone: Component: module-remap-sink
Keywords: Cc:

Description

The Trouble

Ive configured my pulseaudio like this http://wiki.leleobhz.org/index.php/PulseAudio_e_Multicanais/English, and i have a problem when the stream is mono.

With disable-remixing = yes on server config, every thing work proprerly, except i cant hear sounds when its mono. With remixing enabled, the remap-sink appears dont work, because it distributes the stereo sound for all devices, and dont make the desired effect (separate into devices the front and rear outputs).

So, have something to do or its a pulseaudio issue?

Append

Version

||/ Name                          Version                       Description
+++-=============================-=============================-==========================================================================
ii  pulseaudio                    0.9.9-1ubuntu2bkpt            PulseAudio sound server
ii  pulseaudio-dbg                0.9.9-1ubuntu2bkpt            PulseAudio sound server detached debugging symbols
ii  pulseaudio-esound-compat      0.9.9-1ubuntu2bkpt            PulseAudio ESD compatibility layer
ii  pulseaudio-esound-compat-dbg  0.9.9-1ubuntu2bkpt            PulseAudio ESD compatibility layer debugging symbols
ii  pulseaudio-module-gconf       0.9.9-1ubuntu2bkpt            gconf module for PulseAudio sound server
ii  pulseaudio-module-gconf-dbg   0.9.9-1ubuntu2bkpt            gconf module for PulseAudio sound server debugging symbols
ii  pulseaudio-module-hal         0.9.9-1ubuntu2bkpt            HAL device detection module for PulseAudio sound server
ii  pulseaudio-module-hal-dbg     0.9.9-1ubuntu2bkpt            HAL module for PulseAudio sound server debugging symbols
un  pulseaudio-module-jack        <none>                        (no description available)
ii  pulseaudio-module-lirc        0.9.9-1ubuntu2bkpt            lirc module for PulseAudio sound server
ii  pulseaudio-module-lirc-dbg    0.9.9-1ubuntu2bkpt            lirc module for PulseAudio sound server debugging symbols
ii  pulseaudio-module-x11         0.9.9-1ubuntu2bkpt            X11 module for PulseAudio sound server
ii  pulseaudio-module-x11-dbg     0.9.9-1ubuntu2bkpt            X11 module for PulseAudio sound server debugging symbols
ii  pulseaudio-module-zeroconf    0.9.9-1ubuntu2bkpt            Zeroconf module for PulseAudio sound server
ii  pulseaudio-module-zeroconf-db 0.9.9-1ubuntu2bkpt            Zeroconf module for PulseAudio sound server debugging symbols
ii  pulseaudio-utils              0.9.9-1ubuntu2bkpt            Command line tools for the PulseAudio sound server
ii  pulseaudio-utils-dbg          0.9.9-1ubuntu2bkpt            PulseAudio command line tools detached debugging symbols

Note: All these packages are backported from Ubuntu Hardy to Gutsy by me, so i know all the package development tree.

Patches List

From debian/patches/series:

#0001-Set-ESD-socket-to-tmp-.esd-socket-to-match-up-with.patch # not for Ubuntu
0002-Double-esound-maximum-sample-size.patch
0003-fix-uploading-of-samples-into-PA.-Problem-discovered.patch
0004-make-sure-to-create-.pulse-before-using-any-config.patch
0005-Don-t-add-protocol-fields-introduced-in-version-12-w.patch
0006-Implement-opcodes-added-in-version-12-in-the-tunnel.patch
0007-Change-config-to-not-fail-if-loading-of-esd-gconf-o.patch
0008-Fix-compilation-on-non-linux-platforms.patch
0050-Reduce-RT-highprio-log-to-info.patch
0051-Reduce-pa_pid_file_create-Daemon-already-running-log-spam.patch
0052-Add-extra-checks-to-padsp-debug-calls.patch

Change History

Changed 4 years ago by tanuk

You can enable remixing, if you use aux channels in the master sink for the remapped sink. See the example at http://www.pulseaudio.org/wiki/Modules#module-remap-sink

I don't close this bug, because it can be argued that the stream created by remap-sink should not be subject to remixing.

Changed 4 years ago by tanuk

  • component changed from daemon to module-remap-sink

Changed 4 years ago by leleobhz

tanuk, this sollution is more clean than mine. Really it allow me to play STEREO files between the real device and remaped device. Ive commented again the line for disabled-remixing, but the mono problem changed.

Mono sound stream passed trought real device make the sound out in all 4 channels, and if the sound is redirected to remaped device, the sound goes only to rear channel (expected).

My conclusion is the remixing option distribute the audio observing all channels. May have someway to setup how the mixing does that?

Changed 4 years ago by leleobhz

Solved issue!!!

The correct config is:

load-module module-alsa-sink sink_name=sound_card device=hw:0 channels=4 channel_map=front-left,front-right,aux0,aux1

load-module module-remap-sink sink_name=front_stereo master=sound_card channels=2 master_channel_map=front-left,front-right channel_map=front -left,front-right

load-module module-remap-sink sink_name=rear_stereo master=sound_card channels=2 master_channel_map=aux0,aux1 channel_map=front-left,front-right

This way, if i send the audio to real device, i get 4 channel output "elif" i send the audio to front_stereo, i get 2 channel front-only "elif" i send the audio to front_rear, i get 2 channel rear-only.

Ill not close this bug because this apply now only to mono sounds. Stereo sounds works between the remaped devices, but if i redirect to the real device, it dont play in 4 channels like mono sound, but only in front.

Changed 4 years ago by lennart

  • status changed from new to closed
  • resolution set to invalid

Hmm? If you disable remixing via disable-remixing = yes, and your output sink has no "mono" channel, than you won't hear anything. That's what you get for setting disable-remixing=yes. If you want mono distributed on l+r, than enable remixing again.

I mean, what do you want? If you disable remixing, then you disable remixing. It's that simple.

Note: See TracTickets for help on using tickets.