Alsa Input Plugin Long Buffer Time

Need help with MPD?
Post Reply
Posts: 1
Joined: May 30th, 2020, 5:08 pm

Alsa Input Plugin Long Buffer Time

Post by aratarrome »


before I ask my question I just want to say thank you for your great work you have attain with MPD. I love this software.

Lately, I use my the SPDIF input of my sound card to connect it with a bluetooth receiver to playback music from my mobile phone.

I just added a track in the play list as recommend in the mpd documentation to hear the music from the sound card input:

Code: Select all

mpc add alsa://iec958:1
This works. I can hear the music from my mobile phone. But when I change a track on my phone I recognized a latency of ca. 5 seconds and that is really annoying. I suppose that this long buffering happens in the ALSA plugin of mpd, because when I capture the SPDIF with

Code: Select all

arecord -d 10 -f cd -t wav -D hw:1,0 foobar1.wav
and change tracks during recording I have a maximal a latency of one second.

Can anyone give me a hint how I can reduce the long buffering or latency?

My mpd version is 0.21.5

Thanks to all.

Best wishes,

Forum team
Posts: 1139
Joined: January 15th, 2013, 3:43 pm

Re: Alsa Input Plugin Long Buffer Time

Post by max »

You can't. MPD is designed for reliability, therefore it uses large buffers. It is not designed for your use case.
Also, your MPD version is very old and unsupported.
Post Reply