Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pulseaudio plays old buffer when starting playback
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 294

PostPosted: Fri Aug 09, 2024 4:13 pm    Post subject: pulseaudio plays old buffer when starting playback Reply with quote

The issue is I believe pulseaudio is playing/not clearing out the old audio buffer. To recreate this:

1. play music.
2. stop music. wait a little bit so there is some silence.
3. play a different song.
4. at the very start there will be a split second of what I was last listening to before the next song starts.

I've read into this but I cannot find my exact issue. My configs (/etc/pulse/daemon.conf) have no changes. This has been going on for a while and I figured it was a bug that would get squashed, but unfortunately not. Any suggestions of what to try would be appreciated.
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 423

PostPosted: Fri Aug 09, 2024 5:11 pm    Post subject: Reply with quote

Well I am all for choice, however if you look at:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio
You will see there is not much development on Pulseaudio.
In one of the most recent PA mailing list threads a user was encouraged to just switch to Pipewire as that is the new multimedia framework.
https://lists.freedesktop.org/archives/pulseaudio-discuss/2024-July/032473.html
This is probably not what you would prefer to hear, but I would suggest trying to make the switch to Pipewire
rather than spending time and resources tracking down this obscure issue. Hopefully the transition is seamless and without issue.
Back to top
View user's profile Send private message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 294

PostPosted: Fri Aug 09, 2024 5:40 pm    Post subject: Reply with quote

I may have misspoke, just checked and I have both pulseaudio and pipewire installed. I'm betting things use pipewire so it's probably an issue with that.

I guess that leads to another question. Can I uninstall pulseaudio or is that something that will need to hang around like alsa?
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3432

PostPosted: Fri Aug 09, 2024 6:04 pm    Post subject: Reply with quote

Pipewire is a complete replacement for both, pulseaudio and jack, and it understands protocols used by pulseaudio, jack, and alsa, AND I think it even has its own.
PW does not require PA, as long as your apps don't depend on it either, you can uninstall it. You may need to flip some use flags though.

Alsa on the other hand provides access to hardware, so this part is necessary, whether you use sound routing daemon or not
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 423

PostPosted: Fri Aug 09, 2024 6:31 pm    Post subject: Reply with quote

It might be beneficial to read through these two and make sure you have followed all the steps and everything is set up correctly:
https://www.gentoo.org/support/news-items/2022-07-29-pipewire-sound-server.html
https://wiki.gentoo.org/wiki/PipeWire
Back to top
View user's profile Send private message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 294

PostPosted: Fri Aug 09, 2024 7:54 pm    Post subject: Reply with quote

I have to recompile half my box after changing to -pulseaudio. Be back in a bit.
Back to top
View user's profile Send private message
Saundersx
Apprentice
Apprentice


Joined: 11 Apr 2005
Posts: 294

PostPosted: Sun Aug 11, 2024 4:34 am    Post subject: Reply with quote

After much compiling and blowing away every single thing pulse related it fixed all my issues. Another issue I didn't mention was vlc was quite flakey, removing pulse fixed all that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum