-
Notifications
You must be signed in to change notification settings - Fork 194
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
Stuttering audio, especially when changing volume #752
Comments
From the logs it looks like the ALSA device is experiencing constant underruns. Either the application is not writing audio frames fast enough, or else the start threshold is too low. |
Thanks, @borine Do you have any suggestions, at least to make this problem less disturbing? |
It is not clear what you mean by "change the volume". Do you:
I've never used svxlink and know nothing about it. The logs you give contain no error messages, the bluealsa PCM plugin is behaving normally. You need to find out why the application is unable to provide audio frames fast enough. I have never seen a report that operating any kind of volume control has slowed down the throughput of any ALSA device, so that is a complete mystery to me. |
Hi, I have two cases:
I mention that even some frames are lost, on wired speakers, the problem never ever occurs. Maybe some insights that can help:
|
I've found some time to have a quick look at svxlink, so at least I know what it is now. It seems to be designed for voice communications with low latency, streaming in audio from a SDR and playing it back live to an ALSA device. Is that correct? If so then possibly one difficulty is that A2DP is designed for use with music communication with high latency, svxlink may well struggle to match the outgoing device parameters to the incoming stream configuration. You could try increasing the ALSA device block size from its svxlink default of 256 to something better suited to A2DP such as 1024 or 2048. Other than that there is not much I can suggest, except perhaps to use a HFP or HSP device instead of A2DP. |
Problem
Audio stream stuttering, especially when changing volume - it starts to stutter. And that stutter starts to remediate when the audio streaming is stopped for some seconds.
Reproduction steps
I use the following configuration to link the svxlink software to to my raspberry pi.
This is how I pass the audio device to the svxlink software:
Setup
I'm using a Raspberry Pi 3B+ and a Debian 12 bookworm
Additional context
A PoC after I change the volume: https://streamable.com/r38e2v
The text was updated successfully, but these errors were encountered: