Low Latency Audio on Linux with Pipewire | Gentoo Guide

Sdílet
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

Komentáře • 38

  • @Ethorbit
    @Ethorbit Před 2 lety +1

    Thanks so much! I would be opening like 30 things and suddenly have audio popping, it was very distracting but this video fixed it.

  • @feathecutie9942
    @feathecutie9942 Před 3 lety +1

    this is *exactly* what i needed even though i wasn't even looking for it, thank you so much

  • @Genaro_Flores
    @Genaro_Flores Před rokem

    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!

  • @darkice1485
    @darkice1485 Před 3 lety

    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?

  • @Cobalt985
    @Cobalt985 Před 3 lety +5

    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)

    • @Ethannij
      @Ethannij  Před 3 lety

      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.

    • @Cobalt985
      @Cobalt985 Před 3 lety +1

      @@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.

  • @bitwolfy
    @bitwolfy Před 2 lety

    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!

    • @Ethannij
      @Ethannij  Před 2 lety

      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.

    • @bitwolfy
      @bitwolfy Před 2 lety

      @@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

  • @s9209122222
    @s9209122222 Před 2 lety

    Is bit perfect not available on PipeWire yet?

  • @Noxer77
    @Noxer77 Před 2 lety

    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

    • @Ethannij
      @Ethannij  Před 2 lety

      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

    • @Noxer77
      @Noxer77 Před 2 lety

      @@Ethannij Would have to do that for osu?

    • @Ethannij
      @Ethannij  Před 2 lety

      @@Noxer77 you'll want to use the newer gonx patches on wine, (more info in thepoon's) discord. And that should help

  • @roridev
    @roridev Před 3 lety

    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)?

    • @Ethannij
      @Ethannij  Před 3 lety

      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

    • @roridev
      @roridev Před 3 lety

      @@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

    • @Ethannij
      @Ethannij  Před 3 lety

      @@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

    • @roridev
      @roridev Před 3 lety

      @@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.

  • @Lmao-ke9lq
    @Lmao-ke9lq Před 2 lety

    How do you manage audio volume without Desktop Enviroment?

    • @Ethannij
      @Ethannij  Před 2 lety

      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.

  • @elosant2061
    @elosant2061 Před 3 lety

    What is your wallpaper?

  • @masondear8016
    @masondear8016 Před 3 lety

    I’ve had no problems with Alsa, is there a reason to use this over alsa?

    • @Ethannij
      @Ethannij  Před 3 lety +2

      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.

    • @GamrGalore3K
      @GamrGalore3K Před 3 lety

      @@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

    • @Ethannij
      @Ethannij  Před 3 lety

      @@GamrGalore3K You're right, my bad. What i meant anyways, was using alsa without a sound server was difficult for me.

  • @_yuri
    @_yuri Před 3 lety

    everyone be talking about pipewire these days

    • @Ethannij
      @Ethannij  Před 3 lety

      That's probably a good thing since pulseuadio has been kinda sub par for a lot of things in my opinion.

    • @Cobalt985
      @Cobalt985 Před 3 lety +2

      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.

    • @pacc0698
      @pacc0698 Před 3 lety

      Can't blame them, I heard it's great. I can't use it til it's merged into nixpkgs stable tho.