Skip to content
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

High latency with vban_emitter/alsa (alsaSetParamsRework) #85

Open
vladpetric opened this issue Feb 12, 2023 · 0 comments
Open

High latency with vban_emitter/alsa (alsaSetParamsRework) #85

vladpetric opened this issue Feb 12, 2023 · 0 comments

Comments

@vladpetric
Copy link

Hi, I'm getting roughly half a second->a second latency when using the vban_emitter (alsaSetParamsRework branch, primary branch wasn't working at all). Everything's fine otherwise.

asoundrc:

pcm.!default
{
    type asym
    capture.pcm
    {
        type plug
        slave.pcm "mic_control"
    }
}

pcm.mic_control {
    type            softvol
    slave {
        pcm         "hw:CARD=Rx,DEV=0"
    }
    control {
        name        "Softmute Capture Volume"
        card        0
    }
    max_dB 20.0
    min_dB -100.0
}

Command line:

./vban_emitter -i 192.168.1.231 -p 6981 --streamname=Stream2 --rate=48000 -b alsa --loglevel=3

Note that the asoundrc is not necessary, I can pass in the device "hw:CARD=Rx,DEV=0" by hand as well (and without asoundrc), and the problem is the same (asoundrc gives me softvol and default device, that's all).

Also, I noticed that the buffer size set in the main function is not used at all within the alsa backend (again, this is the rework branch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant