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

+1sec latency until clients receives music #477

Closed
TheStaticTurtle opened this issue Sep 17, 2019 · 4 comments
Closed

+1sec latency until clients receives music #477

TheStaticTurtle opened this issue Sep 17, 2019 · 4 comments

Comments

@TheStaticTurtle
Copy link

TheStaticTurtle commented Sep 17, 2019

I was tryn to setup a mini test environement with two sound cards on my pc and my phone (3clients total) + the server on the same machine. I've loaded the pulse audio file sink pipe but when I try to watch a video / film or even play music I takes about 1.5sec for the audio to be distributed. Is there any way to reduce that I seen the PULSE_LATENCY_MSEC reference when loading the module but it does nothing at all.
(Edit) The audio IS sync between clients
Help would be apreciated.

@deisi
Copy link

deisi commented Nov 25, 2019

There is some hardcoded delay in snapserver see:
#329

I have once tried to compile my own version where I changed that number. However it didn't work at all so i stopped looking into this. Currently I just don't watch videos with snapcast, as pulse audio cant handle delay on fifos. But, if I remember correctly that might be available in a future version of pulse-audio.

@badaix
Copy link
Owner

badaix commented Mar 4, 2020

Snapcast is not designed to sync audio and video, but only to sync different audio clients.

@badaix badaix closed this as completed Mar 4, 2020
@deisi
Copy link

deisi commented Mar 4, 2020

But the issue here is not only about syncing video and audio. In my case e.g. changing the volume via software is delayed. I have a delay of about 2s, of witch one is due to snapcast. As I use a wired connection always I think the snapcast delay is oversized and it would be nice to be able to reduce it.

@badaix badaix reopened this Mar 4, 2020
@badaix
Copy link
Owner

badaix commented Mar 14, 2020

You can reduce it to 400ms (the buffer setting in snapserver.conf).
I recommend changing the volume using the snapcast API to have it changed instantly (you can use e.g. Snapdroid).
When you just change the volume of your input signal, you will have of course the configured latency.

@badaix badaix closed this as completed Mar 14, 2020
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

3 participants