LocalAudioBroadcast icon indicating copy to clipboard operation
LocalAudioBroadcast copied to clipboard

Reduce lag?

Open akaleeroy opened this issue 7 years ago • 2 comments

I use Foobar2000 with the foo_out_upnp component to play audio to my UPnP renderer and it barely has any lag. When using LocalAudioBroadcast there's a delay of a few seconds.

Can this lag be improved? Or is it fundamentally a different kind of situation when streaming from PC's audio? I'm curious because it occurred to me renderer is clearly capable of short lag.

Thanks!

akaleeroy avatar May 06 '18 10:05 akaleeroy

LocalAudioBroadcast sends the audio data to the renderer as fast as possible (except for a 100ms startup delay) so there is nothing done (e.g. buffering) that might introduce a lag. I noticed though that some UPnP renderers (e.g. Kodi) like to buffer 1 - 2 seconds of audio before rendering it, leading to the lag.

I've basically made the same experience as you with foo_upnp_out but did unfortunately never find out what it does differently to avoid the buffering in the renderer.

protyposis avatar May 06 '18 20:05 protyposis

Or is it fundamentally a different kind of situation when streaming from PC's audio? I'm curious because it occurred to me renderer is clearly capable of short lag.

I installed MusicBee with the UPnP plugin and found out the following:

output as a continuous stream [enables gapless playback and cross-fading but output will lag and the device will not be able to show current track information]

So I think the lag-free streaming is when you stream a bounded audio file to the device, and the laggy streaming is when the stream is continuous.

akaleeroy avatar Jun 04 '18 10:06 akaleeroy

Closing due to repo archival (and because the question is actually answered :)).

protyposis avatar Jan 15 '24 22:01 protyposis