SamDel / ChromeCast-Desktop-Audio-Streamer

Stream the sound of your desktop to your Chromecast Audio device
MIT License
416 stars 30 forks source link

Synchronising 2 Chromecast Audio #9

Closed s4n3 closed 5 years ago

s4n3 commented 6 years ago

I have 2 chromecasts audio (one actually included in JBL Playlist speaker) and they are out of sync (when playing simultaneously). Am I doing something wrong ?

SamDel commented 6 years ago

There's no automatic synchronization between two devices in the application.

With this little trick you can sync the devices:

Maybe that process can be automated in a future release.

resom78 commented 6 years ago

Hi,

About the lag control, I saw in your code that in fact it skips some audio packets!! It's not really a latency control since it degrades the audio quality! Why did you manage the latency in this way?

SamDel commented 6 years ago

You're right. When you use the lag control and it's not on the maximum value it removes every x-th packet from the audio stream, reducing the quality. You should only use it when latency is more important than quality.

I was experimenting with it. The only way I could think of to reduce the latency was keeping the buffer on the Chromecast device low.

SamDel commented 5 years ago

Version 2.0 supports groups.

You can create groups in the Google Home app and use them in this application to play devices synchronized.

Please let me know if it works for you!