Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio buffer underruns with ALSA (probably caused by alsartfix) #10206

Closed
mixxxbot opened this issue Aug 23, 2022 · 7 comments
Closed

Audio buffer underruns with ALSA (probably caused by alsartfix) #10206

mixxxbot opened this issue Aug 23, 2022 · 7 comments

Comments

@mixxxbot
Copy link
Collaborator

Reported by: c-moon
Date: 2020-11-08T20:07:56Z
Status: Fix Released
Importance: Critical
Launchpad Issue: lp1903462


Since about 2 weeks, I have encountered some issues with increased audio buffer underruns in recent commits of Mixxx. Especially when I load a song into a deck while the other deck is playing, or open a dialog (e.g. settings), or playing song with key pitch enabled, or even when I'm browsing through the song library too fast.
Before this I've used commit 37a6a53 even for gigs in my productive environment without any noticeable underruns even under heavy load.

So yesterday I've spent some time to find out what's the culprit for this issue. The last commit that works at least for me is https://github.com/mixxxdj/mixxx/tree/48781daed114e652338ffba76a3f4b6b4ab5beeb. The issue starts with https://github.com/mixxxdj/mixxx/tree/5d3c4670d6060ccb31da465a5cab7651803ac365 and all further commits. The culprit seems to be the alsartfix (#3160), so I did a quick test compiling the latest commit (9ddc5ae) and reverted all changes concerning the alsartfix. Et voila... everything is working again as expected.

I'm using ALSA directly (without Pulseaudio) and a Denon MC7000 controller. Kernel is 5.4 with applied and working RT patch (Gentoo Linux 64 Bit).

Thanks in advance!
Regards,
Marco

@mixxxbot
Copy link
Collaborator Author

Commented by: uklotzde
Date: 2020-11-09T00:47:42Z


#3277

@mixxxbot
Copy link
Collaborator Author

Commented by: Be-ing
Date: 2020-11-09T01:11:00Z


Thank you for taking the time to investigate the source of the issue.

@mixxxbot
Copy link
Collaborator Author

Commented by: uklotzde
Date: 2020-11-09T08:01:46Z


Thank you also from my side. Your thorough investigation and analysis was the base for finding the source of this critical issue quickly! Hopefully fixed now.

@mixxxbot
Copy link
Collaborator Author

Commented by: c-moon
Date: 2020-11-09T19:39:12Z


You're welcome, guys! Glad to hear that I could help to narrow down this issue for good.
But I'm still wondering why no one else has noticed this problem before? But to be honest, when these issues have occurred the first time here, I thought there must be something wrong with my setup. Until I tried an earlier version of Mixxx and realized the buffer underruns are suddenly all gone.
Thanks again for your excellent work on Mixxx!

@mixxxbot
Copy link
Collaborator Author

Commented by: Be-ing
Date: 2020-11-09T19:48:00Z


#3160 was merged only 17 days ago and there has not been any releases since then, so that's why no else has reported this. Personally I use JACK so I wasn't affected by this.

@mixxxbot
Copy link
Collaborator Author

Commented by: c-moon
Date: 2020-11-09T20:18:52Z


OK, so it's very helpful then that I'm always compiling recent Git commits myself. I will keep it up. ;-)

@mixxxbot
Copy link
Collaborator Author

Issue closed with status Fix Released.

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
@mixxxbot mixxxbot added this to the 2.3.0 milestone Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant