Low Latency Audio on Linux with Pipewire | Gentoo Guide
Vložit
- čas přidán 30. 04. 2021
- Pulseaudio has a lot of issues related to audio latency. To solve this problem, we can use pipewire to get proper low latency audio.
EDIT: it seems pipewire has moved their configuration files. You must now create a directory in your $HOME/.config directory and copy the relevant files. "mkdir -p $HOME/.config/pipewire" "cp -r /usr/share/pipewire/* $HOME/.config/pipewire/" and make your changes there.
The wine-osu guide: blog.thepoon.fr/osuLinuxAudio...
Pipewire gentoo wiki: wiki.gentoo.org/wiki/PipeWire...
My Overlay: github.com/ethannij/ethannij-...
Check out my Social Media to be informed when I post a new video or go live:
Twitch: / ethannij
Twitter: / ethannij
Reddit: / ethannij
Gitlab: gitlab.com/ethannij
Join my discord: / discord
About Me:
Hey, my name is Ethan. I've been creating content for a few years, although this channel is fairly new. If you enjoyed or had any critiques please leave your feedback in the comments. I hope you enjoy my videos.
Setup:
Ducky One Two TKL White
Razer Mamba Wireless Mouse
Steelseries Arctis 7 wireless headphones
1920x1080 60hz 27 inch VioTek monitor
2560x1080 85hz 34 inch Sceptre ultrawide monitor
2560x1440 144hz 27 inch Pixio PX276 monitor (main)
Gtx 1070ti
Ryzen 7 2700x
48gb ddr4 3200hz
1tb ssd
2tb hdd - Hry
Thanks so much! I would be opening like 30 things and suddenly have audio popping, it was very distracting but this video fixed it.
this is *exactly* what i needed even though i wasn't even looking for it, thank you so much
Thank you very much, I switched to Pipewire yesterday and today I'm up and running fine because of your video, I'm on Debian 11 and latence in Ardour 7.2 is over!
hello thnx for the hints! have you noticed some bad behavior on pavucontrol ? i saw after installing pipewire that i cannot switch anymore between recording sources on applications listening for some source! any suggestion?
Thanks for this! I haven't watched it all the way through yet but I'm building a Beatmania IIDX controller and want the lowest audio latency possible so that hitsounds actually sound on time (using Beatoraja)
That's a pretty cool setup you're building. I dont know much about Beatmania, or any of the things that go into making that setup but it sounds like pipewire is definitely going to be helpful in that sort of thing since it benefits from low audio latency. Good luck with your build, maybe send pics in my discord of the setup when it's ready some time, id be super interested in seeing it.
@@Ethannij Sure, and thanks! I don't have a timeline yet, a few parts are coming from AliExpress so that'll be my limiting factor.
Seemingly, clients that use native pipewire/(maybe native jack) can set the buffer size to what it wants, osu lazer linux native autoset pipewire to output with a buffer size of 256, which is about as low as you wanna push it before your pc will start begging for mercy, so its good to see this may be a non issue in the future!
is that right? i didnt know the default buffer was 256, i always hear that lazer has more latency. atm i use 128 as my buffer size so i guess that could be why.
@@Ethannij I've yet to actually tamper with any pw settings, but normally it runs on my headphones at 512, but the moment I ran lazer they went to 256. Its also using pipewire directly, not jack-pipewire or pulse-pipewire
Is bit perfect not available on PipeWire yet?
Im using manjaro and I have everything setup exactly how you have it here and still getting extremely noticeable latency very confused at what im doing wrong
It could be the program itself. These changes allow PW to negotiate lower quantum values but the program itself may have a limit, you can check with `pw-top`. You also may have to change alsa-monitor.conf if you use a usb sound card
@@Ethannij Would have to do that for osu?
@@Noxer77 you'll want to use the newer gonx patches on wine, (more info in thepoon's) discord. And that should help
welp, i'll just try it and see, the crackly audio is slowly killing me. is there anything else that i need to do on osu to make the game work (like turning legacy audio support)?
In terms of working with osu, I find that on occasion i have to set the audio device from "default" to "pulseaudio" in game or the other way around after starting it. Besides that though, there isnt really anything special you need to do. Make sure to use wine-osu for osu specifically since it provides very low latency audio, i packaged it, you can find it at github.com/ethannij/ethannij-overlay
@@Ethannij since i use arch i can't use your gentoo package but, i'll try to figure things out here with the info you gave me. just switched to pw to see if there is any notable differences. i'm also seriously thinking in following thepoon's tutorial since lutris has failed on me with the crackling audio thats making me mad. thx for the fast responce.
update: good god, the audio doesn't crackle. i'm free. should've done that a while back lel
@@roridev I didn't realize you were on arch. If that's the case thepoons tutorial has instructions for wine-osu for arch. Good luck with pw hope it is better than pulse for you
@@Ethannij my fault i didn't say it lel. the crackling issues have stopped but i'm getting heaps latency. will try to sort things here.
How do you manage audio volume without Desktop Enviroment?
i either open pavucontrol or pulsemixer and adjust my volume from there, I also have a amp/dac that has a volume wheel built onto it. most people that use standalone WM have some sort of widget for volume though, im just weird.
What is your wallpaper?
I’ve had no problems with Alsa, is there a reason to use this over alsa?
I haven't successfully used alsa by itself before but I do know the common argument against it. ALSA is really hard to configure usually, with almost no clear documentation, if you're doing will with alsa then there is no need to switch. The same can be said about pulseaudio. The reason to switch to pipewire would be if you are interested in lower latency audio, it's up to you if that's something you're interested in.
@@Ethannij Pipewire isn't an alternative to ALSA, it's an alternative to pulse, which is a server that routes sound from application to output
@@GamrGalore3K You're right, my bad. What i meant anyways, was using alsa without a sound server was difficult for me.
everyone be talking about pipewire these days
That's probably a good thing since pulseuadio has been kinda sub par for a lot of things in my opinion.
For good reason! For me installing it instantly stopped some weird problems I was having on a stock Manjaro install on a computer for my DDR cab and dropped my audio latency too.
Can't blame them, I heard it's great. I can't use it til it's merged into nixpkgs stable tho.