Talk:PulseAudio

From ArchWiki
Jump to navigation Jump to search

Equalizer module is unsupported

As of pulseaudio-7.0-2, loading the module-equalizer-sink module results in the following warning:

pulseaudio[535]: W: [pulseaudio] module-equalizer-sink.c: module-equalizer-sink is currently unsupported, and can sometimes cause PulseAudio crashes, increased latency or audible artifacts.
pulseaudio[535]: W: [pulseaudio] module-equalizer-sink.c: If you're facing audio problems, try unloading this module as a potential workaround.

Running qpaeq then makes PulseAudio crash with this error:

pulseaudio[535]: E: [pulseaudio] iface-module.c: Assertion 'pa_dbus_protocol_add_interface(m->dbus_protocol, m->path, &module_interface_info, m) >= 0' failed at modules/dbus/iface-module.c:309, function pa_dbusiface_module_new(). Aborting.

-- Lahwaacz (talk) 08:43, 28 September 2015 (UTC)

This is not correct. Recently installed pulseaudio-7.0-2 and following the instructions in the wiki am successfully running the equalizer.
brettski (talk) 03:46, 13 October 2015 (UTC)
This is odd. You should have at least seen the first warning in your journal... -- Lahwaacz (talk) 07:01, 13 October 2015 (UTC)

Adding User to Audio Group

Currently, the article says, "There is no need to add your user to audio group, as it uses udev and logind to dynamically give access to the currently "active" user". That is a little heavy-handed; perhaps a wording like "There is usually no need..."? For instance, on one of my machines running pulse audio, I was unable to play any sounds as "me", but could using root. The server is running headless, and I access it over SSH. It's understandable that udev doesn't consider "me" the currently "active" user in this scenario. It is essential to know that adding a user to the audio group helps in this circumstance, so I appreciate the explicit mention of that group. Does my rewording make sense, or is there a better rewording? Lmat (talk) 14:29, 1 March 2016 (UTC)

This looks like a reasonable rewording. Additionally I would considering explicitly describing in which cases it might make sense in the Wiki. -- Edh (talk) 14:56, 1 March 2016 (UTC)
Agreed. Nothing worked "automatically" for me in XFCE. The solution was to manually enable/start pulseaudio.service. Also note: this section in the page is now called #Running -- ChrisDunder (talk) 01:05, 3 July 2020 (UTC)

Default sink @DEFAULT_SINK@ and keyboard control

I got a hard time finding pactl set-sink-volume @DEFAULT_SINK@ -5%.

@DEFAULT_SINK@ comes very handy and fixes a long time frustration with PulseAudio (with sink indices changing each time I plug unplug a jack, or to get commands working across multiple machines with different sinks).

It will probably help more people to make some changes or add a Tip about @DEFAULT_SINK@ somewhere (PulseAudio#Keyboard volume control ?).

Only after finding about it, I found Xbindkeys#Xbindkeysrc. Maybe PulseAudio#Keyboard volume control could also Tip about Xbindkeys#Xbindkeysrc.

(I would have edit the page, if only I knew which changes was best: add a Tip and/or change the command lines and/or something else ?)

-- Gravemind2a (talk) 09:55, 4 September 2016 (UTC)

I suppose changing the commands is the best approach. However for those who want to edit a specific sink a small note should be added. This is just my personal opinion on this matter. -- Edh (talk) 10:11, 4 September 2016 (UTC)
I think it is better suited as a tip, because if you start directly with @DEFAULT_SINK@, it's not clear at all what the shortcut is for. -- Lahwaacz (talk) 11:07, 4 September 2016 (UTC)
I've added the tip and edited the xbindkeys page to link to both PulseAudio and ALSA pages for alternative commands. -- Lahwaacz (talk) 11:37, 4 September 2016 (UTC)
Thanks. I also discovered @DEFAULT_SOURCE@ (for microphone) and I've added tips in PulseAudio/Examples#Set default input sources and PulseAudio/Examples#Set the default output source -- Gravemind2a (talk) 11:55, 4 September 2016 (UTC)
Hey, Gravemind2a, does amixer -q -D pulse sset Master 5%+ unmute work for you? Take a look at my comment right above yours, in this Talk page. --Denilsonsa (talk) 11:03, 4 September 2016 (UTC)
Yes it works. But if it also works directly with PulseAudio @DEFAULT_SINK@, why go through alsa amixer ? (and also long time ago I had issues with fast repeating asynchronous amixer volume commands making left/right speaker unbalanced, that actually made me drop Alsa in favor to PulseAudio)-- Gravemind2a (talk) 11:29, 4 September 2016 (UTC)


Networked audio

I have added a stub/section about sending/receiving audio through the network using PA. The relevant documentation is here. I have a working networked PulseAudio setup, it's available here as an ansible playbook, please allow for some time for me to port the most important information here. --Nodiscc (talk) 14:45, 21 November 2017 (UTC)

Note: Some confusion may occur

confusion is even bigger after reading this. be more explicit, give examples, what is the advatage and aim of doing what they do? --UBF6 (talk) 10:11, 1 May 2018 (UTC)

virtual surround sound

I think that there should be guide to setting up virtual surround sound (when you have 2 speakers). https://forum.manjaro.org/t/howto-setting-up-virtual-surround-sound-for-headphones/55918 —This unsigned comment is by Janat08 (talk) 16:58, 6 May 2019 (UTC). Please sign your posts with ~~~~!

Could really use a Pre-Processing section

The web in general is pretty bad at giving advice for using microphones under Linux. So many questions are answered with tiny snippets that might have answered one person's question, but don't provide the background to understand how to use the tools. Things that could be covered are:

  • Adjusting channels - taking a mono microphone input and panning it to a specific stereo position, or downmixing a stereo microphone to a mono signal
  • Feeding in input through a filter, such as a compressor or limiter.
  • Turning a MIDI input into an analog signal

Surely there's a way to do at least some of these things without resorting to JACK?

Politas (talk) 03:27, 3 April 2020 (UTC)

Mention Pipewire?

I think we should mention pipewire somewhere. For example in "Related Articles" and maybe also in a seperate section. Especially PipeWire#PulseAudio_clients.

G3ro (talk) 15:36, 28 February 2021 (UTC)

Networked audio - New text

I don't agree on every change made here.

In particular:

  • Introduction: Actually you connect to a pulseaudio over network. This can be used to stream audio. It is also not limited to the LAN (though you probably shouldn't stream with this method over the internet).
  • Configuration: Instead of splitting between command and further options, I think we should combine it, so that the options are directly visible.
  • Cookies: "It is a requirement that both the client and server share the same cookie." Actually it is not, there are other modes available, so we should describe the possibilities as such. At least it should be: "By default the cookie method is used".
  • Selecting the Server: I think it was useful to mention that this is supposed to be "on the clientside"
  • Firewall: This should be mentioned as well "By default PulseAudio listens on port tcp/4713 for incoming connections, you may need to open this port in your firewall."

All in all I would have picked and expanded the old version.

G3ro (talk) 19:42, 10 March 2021 (UTC)

Networked audio - Placing

While I agree that the network setup is no usual usecase and thus can be placed in some "further usecases" section; I also think that the Examples page is a bit of a mess.

I would suggest to have a more structured seperate page for this. Thoughts?

Edit: In addition there are multiple other methods for networked audio, so this might be mentioned in a note.

G3ro (talk) 20:02, 13 March 2021 (UTC)

Well, I'd say everything PulseAudio is a mess :P I don't see a good reason to create too many subpages for each configuration topic. The PulseAudio/Examples page should be cleaned up or at least reorganized to give better overview of the different topics. Anyway, we can decide later if the final content fits into the page or a separate page is needed. -- Lahwaacz (talk) 22:19, 13 March 2021 (UTC)
I agree :D. A restructure of PulseAudio/Examples would probably best.
G3ro (talk) 14:10, 14 March 2021 (UTC)