bencall / RPlay

Java port of shairport
Other
94 stars 20 forks source link

Weird 8 second latency. #11

Open csholmq opened 11 years ago

csholmq commented 11 years ago

I'm not entirely sure how to reproduce. But sometimes the audio is delayed by 5-8 seconds when streaming to my NAS. Console reveals that volume change commands are instant, but the actual sound reveals the volume change up to 8 seconds later.

Could this be something with the audio decoding?

csholmq commented 11 years ago

This goes away with a clean start. So I suspect something is up with the audio buffering.

bencall commented 11 years ago

I don't have any time now to look at it, but indeed you should look at the AudioBuffer class...