-
Notifications
You must be signed in to change notification settings - Fork 67
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
vban_emitter: alsa loopback Broken Pipe error #21
Comments
Hi, thank you for reporting. I assume you use vban_emitter, right ? (garbage characters) |
Not sure if this is the same issue, I changed some settings around, but am still experiencing problems.
produces a clean file that sounds good. When I run
I get a connection bunch of packets send (sounding choppy and broken, likely because of the incorrect sample rate) before the following happens:
However, fixing the sample rate with
results in no connection and the following:
Any help would be greately apreciated. |
Hi, thanks a lot for experimenting around. I must admit I am a bit puzzled but let's see how to sort and fix this out. So, first things first: what is your environment (hardware platform, audio device, os, audio engines (pulse, jack...), vban receptor application used) ? |
My setup is a Ubuntu 17.10 Virtual Machine running on a FreeNAS Server. There are no hw audio devices attached and my audio is using the alsa loopback virtual device. My .asoundrc is the following: pcm.!default {
type asym
capture.pcm "mic"
playback.pcm "speaker"
}
pcm.mic {
type plug
slave {
pcm "hw:Loopback,1,1"
rate 48000
format S16_LE
}
}
pcm.speaker {
type dmix
ipc_key 2867
slave {
pcm "hw:Loopback,0,0"
rate 48000
format S16_LE
channels 2
period_size 1024
}
}
pcm.send {
type plug
slave {
pcm "hw:Loopback,1,0"
rate 48000
format S16_LE
}
}
pcm.recv {
type dmix
ipc_key 2868
slave {
pcm "hw:Loopback,0,1"
rate 48000
format S16_LE
channels 2
period_size 1024
}
} I have the RECV incoming audio working with vban_receptor, but can't get SEND audio working with vban_emitter due to the errors above. The remote source for both VBAN streams (incoming and outgoing) is VoiceMeter Banana running on windows 10. |
Hi, I just setup a Ubuntu 18.04 VM at mine and reusing your .asoundrc, I can reproduce the issue. Let me do my best to understand what is happening. My 2 cents is that it probably has to do with alsa loopback. |
Ok, I think I got it: loopback device cannot be configured with the small buffer size vban_emitter tries to use. Alsa is made in such a way that there is no failure reported when emitter set the parameters to the alsa device, but the parameters impossible to reach are "silently" not applied. I just learnt that user applications of the alsa API are supposed to read back the values after setting them, to know what are the actual values. |
So... It is not exactly because of the buffer size, but rather the way used to set alsa parameters. I created a branch with a different approach that seems to do the trick at mine. |
Hey, I'm now getting the following error spammed:
I also modified my asoundrc a bit, but nothing that should cause above.
|
Hi, sorry for late answer. |
vban_emitter seems to be working perfectly now, however I am having a similar issue with vban_reciever:
with simplified .asoundrc:
|
Hey I Have The Same Issue I Use This Command To Sart The Programm:
the time taht it run is very randow nu parameter varies between 10 and 500 i'm running armv7 have no .asoundrc / alsa service (weird right) and vban_receptor works correctly |
Hi @TGNThump and @TurtleForGaming ,
in your log ? It is not coming from vban_emitter, it might be completely harmless... or not.
|
Yes acutally i'm running on android with the nethunter chroot and alway had this problem i think by updating the kernel I could remove this error but i can't due to custom kernel made by someone else. So the line |
Nop still same error |
Hi, sorry I made no progress since a long time. |
Bonjour... Désolé c'est en Français (Merci google traduction ;-) |
English below, Bonjour @RFXMed, merci pour ce retour d'expérience, je vais essayer de traduire pour les lecteurs non-francophones. Hi @RFXMed, thanks for your experience feedback, let me try to translate: |
Hey any solution for this? |
This PR might help: |
sorry to resurrect an old thread but I was running into the same problem and alsaSetParamsRework branch works for me... any reason it has not been merged to main? |
@quiniouben rebased and opened PR #84 |
Hey, I'm getting the following error output:
The text was updated successfully, but these errors were encountered: