Difference between revisions of "Talk:PulseAudio/Configuration"

From ArchWiki
Jump to navigation Jump to search
(Left-to-mono and Right-to-mono: this configuration can be found in Pulseaudio/Examples, closing)
(Left-to-mono and Right-to-mono: clearing closed discussion)
Line 10: Line 10:
which seems to be default on most distros
which seems to be default on most distros
--[[User:Zang|Zang]] ([[User talk:Zang|talk]]) 00:30, 18 March 2016 (UTC)
--[[User:Zang|Zang]] ([[User talk:Zang|talk]]) 00:30, 18 March 2016 (UTC)
== <s>Left-to-mono and Right-to-mono</s> ==
This is particularly useful for bilingual television broadcasts in Japan. I don't think it belongs in the pulseaudio article, but there's not (yet) a page for ISDB-T/S capture cards, such as the Earthsoft PT-series cards. If I ever get around to creating such a page, I'll move this there. I'm putting it here for now as it is pulseaudio configuration.
Although ISDB is digital, and supports multiple audio streams, broadcasters (NHK at least) are still streaming as if viewers have analog televisions (which some do, with an external receiver unit). For analog broadcasts with bilingual audio in Japan, the two languages were streamed simultaneously as a stereo signal with one language on the left (Japanese) and the other on the right (English). Analog televisions in Japan were designed so that pressing a button on their remote controls (labeled "Language") actually swaps between ''Left-to-mono'', ''Right-to-mono'', and ''Stereo''. Broadcasters apparently expect televisions to still work this way and continue to broadcast bilingual programs with a single, split-language, stereo audio stream.
To emulate the expected hardware, create two remapped sinks in {{ic|/etc/pulse/default.pa}}:
# For Japanese bilingual TV
load-module module-remap-sink sink_name=Left-to-Mono master=alsa_output.pci-0000_00_1b.0.iec958-ac3-surround-51 channels=2 master_channel_map=mono,mono channel_map=front-left,rear-left
load-module module-remap-sink sink_name=Right-to-Mono master=alsa_output.pci-0000_00_1b.0.iec958-ac3-surround-51 channels=2 master_channel_map=mono,mono channel_map=front-right,rear-right
update-sink-proplist Left-to-Mono device.description=Left-to-Mono
update-sink-proplist Right-to-Mono device.description=Right-to-Mono
Unfortunately, pavucontrol disregards {{ic|sink_name}} and calls both of them "Remapped Built-in Audio Digital Surround 5.1" unless the property {{ic|device.description}} has been set. [[User:Quequotion|quequotion]] ([[User talk:Quequotion|talk]]) 19:16, 23 April 2017 (UTC)
:This configuration can be found in Pulseaudio/Examples, closing. [[User:Quequotion|quequotion]] ([[User talk:Quequotion|talk]]) 14:51, 7 June 2019 (UTC)
== .fail and .nofail ==
== .fail and .nofail ==

Latest revision as of 13:54, 14 June 2019

I will merge this page with the main article when I will be done writing. I made a seperate page temporarly so I don't mess up the main one while I finish it. Max-P (talk) 23:33, 28 June 2014 (UTC)Max-P

the default setup seems to use a lot of cpu. I'd propose informing the wiki about using:

 .ifexists module-udev-detect.so
   load-module module-udev-detect tsched=0

which seems to be default on most distros --Zang (talk) 00:30, 18 March 2016 (UTC)

.fail and .nofail

The meaning of .fail and .nofail seem to be swapped. See pulse-cli-syntax(5) about this: ".fail and .nofail Enable (resp. disable) that following failing commands will cancel the execution of the current script file. This is ignored when used on the interactive command line.". Thus .fail tells the daemon to abort on an error and .nofail is "keep going (if you can)".

—This unsigned comment is by Imp (talk) 13:48, 1 March 2018‎. Please sign your posts with ~~~~!