LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-20-2021, 10:32 AM   #16
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309

@chemfire

Did you know what PipeWire replaces for using with the PulseAudio linked applications as usual?

It have an audio server: pipewire-pulse which is a one-to-one replacement of the PulseAudio server. That's all.

The applications believes that they talks with your regular PulseAudio server, and they are linked against PulseAudio library.

So, this Pulse-to-Pipewire bridge about you talk assumes that PipeWire is a totally different thing of PulseAudio.

It's NOT. The PipeWire is just a very improved PulseAudio - like I said, realtime and with Video streams support.

Heck, even its original name was PulseVideo. Go figure!

I believe that's WHY also only few applications tried to support the native PipeWire audio APIs until now.
Code:
bash-5.1$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 34
Server Protocol Version: 35
Is Local: yes
Client Index: 68
Tile Size: 65472
User Name: vanya
Host Name: darkstar.example.org
Server Name: PulseAudio (on PipeWire 0.3.25)
Server Version: 14.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1b.0.analog-stereo
Default Source: alsa_input.pci-0000_00_1b.0.analog-stereo
Cookie: 29b2:407e
bash-5.1$
That's what believes a PulseAudio-powered application that it talks to: PulseAudio 14.0.0

Last edited by LuckyCyborg; 04-20-2021 at 10:45 AM.
 
2 members found this post helpful.
Old 04-20-2021, 10:46 AM   #17
lagavulin16
LQ Newbie
 
Registered: Aug 2017
Distribution: Slackware
Posts: 27

Rep: Reputation: Disabled
Quote:
Originally Posted by LuckyCyborg View Post
That's what believes a PulseAudio-powered application that it talks to: PulseAudio 14.0.0
Then the only correct solution would be to make a Pipeware default out of the box in Slackware 15.
 
Old 04-20-2021, 10:56 AM   #18
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by lagavulin16 View Post
Then the only correct solution would be to make a Pipeware default out of the box in Slackware 15.
Honestly, I believe that our BDFL will leave Fedora to train this dragon first...

BUT, probably is not so long in the future the time when the PipeWire will be the default audio-server, because the PipeWire already does a fine job (also as audio server) and the migration is very simple: just replace that audio server which is running - you do not need to patch and recompile half of distro.

However, I do not believe that this does mean that the PulseAudio will be removed from the distro.

I imagine that there will be a PulseAudio package without its own audio server, containing only the libraries, headers and the tools.

In fact, probably the splitting the PulseAudio server in a separate package is a great idea even for today.

Last edited by LuckyCyborg; 04-20-2021 at 10:59 AM.
 
2 members found this post helpful.
Old 04-20-2021, 10:58 AM   #19
chemfire
Member
 
Registered: Sep 2012
Posts: 422

Rep: Reputation: Disabled
My understanding; I have not tried to run pipewire yet; is that yes it provides a pulse audio server interface. Don't you still have to have the pulse audio libraries present on the system though? Does pipewire provide a replacement library with a compatible API to link at build time for applications that were written with only pulse in mind?
 
Old 04-20-2021, 11:02 AM   #20
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by chemfire View Post
My understanding; I have not tried to run pipewire yet; is that yes it provides a pulse audio server interface. Don't you still have to have the pulse audio libraries present on the system though? Does pipewire provide a replacement library with a compatible API to link at build time for applications that were written with only pulse in mind?
The PipeWire replaces the PulseAudio server, BUT the applications still needs to be linked against the PulseAudio libraries and those libraries to be present.

Then, the PulseAudio C/C++ headers are still needed, also everything else - e.g. the tools.

Long story short: on PipeWire are no compat libraries/headers to replace PulseAudio, only a compat audio server: pipewire-pulse.

True, the applications may choose to migrate to the native APIs of PipeWire, which of course aren't compatible with PulseAudio.

Last edited by LuckyCyborg; 04-20-2021 at 11:39 AM.
 
2 members found this post helpful.
Old 04-20-2021, 11:06 AM   #21
chemfire
Member
 
Registered: Sep 2012
Posts: 422

Rep: Reputation: Disabled
Thanks for the clarification. I thought that was how it probably worked. Great work on this by the way. Huge benefit to the rest of us to have script to follow and an idea of what is coming.
 
1 members found this post helpful.
Old 04-20-2021, 03:16 PM   #22
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
Oss still works (ossv4) , i installed it last year in Gentoo, http://ossnext.trueinstruments.com/f...39034b83c715f7 ,
i compiled a kernel without Alsa support and tested it, i got sound in Mpv, Mpd and Wine, although i had to change a lot of config files.
i have Pipewire Fedora packages installed in Slackware current. if you want just the pulseaudio libraries you can install https://rpmfind.net/linux/rpm2html/s...ulseaudio-libs package pulseaudio-libs or make your own package with those libs. https://fedora.pkgs.org/33/fedora-up...86_64.rpm.html.
and there is also sndio for other uses.

Last edited by adcdam; 04-20-2021 at 03:54 PM.
 
Old 04-20-2021, 03:39 PM   #23
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Since ALSA is mentioned, it could also be mentioned it has seen "tons" of fixes according to many recent changelogs...

Carry on with this until now excellent thread!
 
1 members found this post helpful.
Old 04-20-2021, 03:49 PM   #24
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
why until now?
 
1 members found this post helpful.
Old 04-20-2021, 03:56 PM   #25
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
That's all well and good, I guess(!?), since those who answered my post decided to talk over my head and not actually answer my question (and didn't mean to start any flame war!) which was:

If it's supposedly so easy to implement any of these things (then again, one of the replies to my post made it seem like the world would explode if anything other than X were now used - that's how *I* interpreted the reply. I did express that I was very ignorant of things programming), why can't they be offered as three choices during installation? Don't rag on me just because *YOU* don't like that I, a plain ol' everyday user of Slackware, don't happen to like 'X' whatever. I asked a simple question. I know it's probably *NOT* as simple as it was made to look by the posts I've already pointed out saying it is, but don't talk over my head or down to me and just answer, if possible, if (and why would be nice too, unless that's a programming thing that will make me look cross-eyed after two sentences being read, heh) it can or can't be done.
 
1 members found this post helpful.
Old 04-20-2021, 04:12 PM   #26
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
Talking

[QUOTE]
Quote:
Originally Posted by FTIO View Post
This is *NOT* a put down of the work that's gone into this Pipewire thing, just an observation from an ignorant user who doesn't program at all in any way.

If, as ZhaoLin1457, LuckyCyborg, et al, keep trying to say that adding/making this a daemon is 'so easy/simple', then why would it be so hard to just have the three audio things - ALSA, pulseaudio, Pipewire - as choices of which the user would like to use? I hate that pulseaudio tried to take over, like a bacterial disease of some kind, and now this Pipewire thing being kinda shoved down our throats by those of us with no voice in the matter, and when ALSA, left behind and thrown under the bus, 'just worked' (and personally feel works extremely well) and is no longer even mentioned.

Wouldn't "...putting them as "sample" files, which could be manually renamed by the users wanting to use them." - ALSA, pulseaudio or Pipewire - be a really Good Thing©®™?
i can not ask or there are better people suited to ask your question, im using Slackware current since only a few months ago, there is no choice between just plain alsa and pulseaudio or pipewire in Slaxkware because thats what was choosen, For example in Gentoo you want to use only Alsa you can but Gentoo is a system were you compile everthing.
for example the firefox binary has not support for alsa backend if you use Firefox-bin in Gentoo and you dont have pulseaudio or pipewire you got no sound. if you compile firefox with alsa support you got sound. https://github.com/mozilla/cubeb/wiki/Backend-Support. Pulseaudio was choosen because its what most use. In another distro for example Void Linux they have sndio and firefox sound backend.
its a matter of developers i think if you want more support perhaps you can learn and contribute to Slackware. you can compile your own packages with only Alsa support but you are on your own in that case.
the best thing you can do is learn so you will have more choices and not have what everyone else have.
In my case in Slackware im using pipewire and for example in Steam im having less problems than using just plain alsa.
i ll install ossv4 2019 version to test how it work or if it work in steam.
pulseaudio and pipewire both work on top of Alsa, Ossv4 works on its own, Oss was the default sound for linux until the devolpers decided that their program will not be opensource and that pisded off Linus Torvals and got rid of oss from the kernel, years later Oss went open source again but it was late.
sndio is from bsd and was ported to linux.
Pipewire at least is developed by a very good programmer called Wim Taymans who also created gstreamer i was told by a forum member (i dont know if he is human or a cyborg but he is very lucky) that he likes to share a beer with a guy called Lennart...

Last edited by adcdam; 04-20-2021 at 04:42 PM.
 
1 members found this post helpful.
Old 04-20-2021, 04:19 PM   #27
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by FTIO View Post
That's all well and good, I guess(!?), since those who answered my post decided to talk over my head and not actually answer my question (and didn't mean to start any flame war!) which was:

If it's supposedly so easy to implement any of these things (then again, one of the replies to my post made it seem like the world would explode if anything other than X were now used - that's how *I* interpreted the reply. I did express that I was very ignorant of things programming), why can't they be offered as three choices during installation? Don't rag on me just because *YOU* don't like that I, a plain ol' everyday user of Slackware, don't happen to like 'X' whatever. I asked a simple question. I know it's probably *NOT* as simple as it was made to look by the posts I've already pointed out saying it is, but don't talk over my head or down to me and just answer, if possible, if (and why would be nice too, unless that's a programming thing that will make me look cross-eyed after two sentences being read, heh) it can or can't be done.
Hi FTIO! I hope my post wasn't taken out of context. You are bringing good points. Obviously, Pat would decide how things are implemented. These steps I provided (with everyone's help) shows how to achieve that. I can see staying with Pulse by default and switch to Pipewire in 15.1. At least the options are there now for both which I am quite happy about.
 
1 members found this post helpful.
Old 04-20-2021, 04:57 PM   #28
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Hey, people!

I will translate this thread title properly for you:

Using PulseAudio V2 instead of PulseAudio V1 in Slackware 15

You are kind now to go and open your own thread about "PulseAudio sucks" , please?

Feel free to beat this dead horse bones again. BUT, elsewhere!

Hello! Using PipeWire does NOT mean PulseAudio sucks!

Now we can talk with tranquility about how cool is PulseAudio and its successor?

Last edited by LuckyCyborg; 04-20-2021 at 05:08 PM.
 
3 members found this post helpful.
Old 04-20-2021, 07:30 PM   #29
notzed
Member
 
Registered: Dec 2020
Location: South Australia
Distribution: slackware64-current
Posts: 95

Rep: Reputation: Disabled
Quote:
Originally Posted by FTIO View Post
That's all well and good, I guess(!?), since those who answered my post decided to talk over my head and not actually answer my question (and didn't mean to start any flame war!) which was:

If it's supposedly so easy to implement any of these things (then again, one of the replies to my post made it seem like the world would explode if anything other than X were now used - that's how *I* interpreted the reply. I did express that I was very ignorant of things programming), why can't they be offered as three choices during installation? Don't rag on me just because *YOU* don't like that I, a plain ol' everyday user of Slackware, don't happen to like 'X' whatever. I asked a simple question. I know it's probably *NOT* as simple as it was made to look by the posts I've already pointed out saying it is, but don't talk over my head or down to me and just answer, if possible, if (and why would be nice too, unless that's a programming thing that will make me look cross-eyed after two sentences being read, heh) it can or can't be done.
It's only "simple" here because most (all?) current software is written to use the pulseaudio client library, and pipewrite provides a compatible pusleaudio server implementation. So this lets one use the pipewire framework for sound instead of pulseaudio without having to rewrite any of the client (user) software to use it's apis. While most application software has alsa output, not all of it does and with some it might require special building options. And if they don't have an alsa output option you would have to write one which may not be easy and they probably wont accept as a patch for either.

slackware-current removed the pure-alsa module a few months ago and so it wont be available in 15. I use a combination of plain alsa and pipewire with the pipewire-pulse daemon and disable pulseaudio because it's not something i will let run on my computers. I use a simpler approach than the one here, I set the daemon-binary in /etc/pulse/client.conf to run pipewire, and have /etc/pipewire/pipewire.conf start the pipewire-pulse service. It just seems to work with no hassles, and for this computer i'm the only user and always logged in.

I have a headless PC that plays music and the setup described here is worthless since I don't log into any graphical session to use it. But for that I just use alsa because I wrote the music player it's running, so that point is moot.
 
2 members found this post helpful.
Old 04-20-2021, 07:35 PM   #30
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by LuckyCyborg View Post
You are kind now to go and open your own thread about "PulseAudio sucks" , please?

Feel free to beat this dead horse bones again. BUT, elsewhere!
where?
 
  


Reply

Tags
pipewire, pulseaudio



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pipewire pulseaudio emulation without pulseaudio installed (works) adcdam Slackware 18 04-02-2021 01:34 AM
Plasma 5.20 Beta? It is rock solid, excluding the taskbar thumbnails on Wayland - or rather because Pipewire needs "per user" init scripts LuckyCyborg Slackware 3 09-21-2020 02:50 PM
LXer: This Week in Linux 94: Mesa 20, PipeWire, Linux Be Scary, MyPaint, GTK, Microsoft Defender LXer Syndicated Linux News 0 02-26-2020 07:23 PM
LXer: Improved multimedia support with Pipewire in Fedora 27 LXer Syndicated Linux News 0 09-20-2017 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration