quiniouben / vban

VBAN protocol open-source implementation
GNU General Public License v3.0
450 stars 63 forks source link

Broken pipe Error Raspberry Pi 4 #67

Open Mikroxy opened 3 years ago

Mikroxy commented 3 years ago

Hi I always get this error: Error: alsa_write: snd_pcm_writei failed: Broken pipe ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred

the thing is sometimes it works and sometimes it returns this error when I start the vban receptor. But even if I was lucky and it worked after some time it starts to fail. The Audio is stuttering a lot when this error occurs.

Any Ideas?

mlem8 commented 3 years ago

I fixed this error by running pulseaudio --kill before starting the vban_receptor. Not sure if you have the same underlying issue that I had though.

Mikroxy commented 3 years ago

I fixed this error by running pulseaudio --kill before starting the vban_receptor. Not sure if you have the same underlying issue that I had though.

Doesn't seem to help for me. :(

Mikroxy commented 3 years ago

When I start the VBAN Receptor it works 1 out of 10 times. All the other times it directly sends out that error message. If it worked Audio Receptor works fine for 10minutes after that a slight delay appears and after 20-30 minutes the delay is about 0.5 seconds. After a while it throws this error again and I got stuttering Audio but the delay is gone.

Mikroxy commented 3 years ago

It sounds like the Samplerate is wrong

quiniouben commented 3 years ago

Hi, sorry for the long delay in answering. An underrun for the receptor can happen if there is nothing anymore to write to the audio device and no new vban packet came in. You can try with a bigger network quality number by passing -q2 or -q3 or -q4.