I have a pair of wireless headphones with USB dongle.
When connected, device is attached as uaudio0.

I noticed frequent clicks when playing music and browsing web.
I adjusted sndiod buffer size and number of frames, but no result.

I noticed that play.errors parameter is rising during clicking,
suggesting buffer underruns:

# audioctl -f /dev/audioctl1
audioctl -f /dev/audioctl1  
name=uaudio0
mode=play,record
pause=0
active=1
nblks=2
blksz=1020
rate=48000
encoding=s24le3
play.channels=2
play.bytes=2784600
play.errors=12240
record.channels=1
record.bytes=1392300
record.errors=0

I tried to adjust the nblks and blksz to larger values:

# audioctl -f /dev/audioctl1 blksz=8192 nblks=16
audioctl -f /dev/audioctl1 blksz=8192 nblks=16 
nblks: 2 -> 16
blksz: 1020 -> 8192

So far, so good - I thought.

When starting mpv (or mpd), the value is reset to
nblks: 2
blksz: 1020

and clicking continues.

Why the value is accepted initially only to be reverted when I start
playing sound?

Best regards,
Chris Narkiewicz

Reply via email to