comment - release

This commit is contained in:
philippe44
2019-11-24 10:24:27 -08:00
parent b5911874e6
commit 64b8040b30

View File

@@ -204,6 +204,7 @@ void raop_sink_cmd_handler(raop_event_t event, void *param)
LOG_DEBUG("obuf:%u, sync_len:%u, devframes:%u, inproc:%u", _buf_used(outputbuf), raop_sync.len, output.device_frames, output.frames_in_process); LOG_DEBUG("obuf:%u, sync_len:%u, devframes:%u, inproc:%u", _buf_used(outputbuf), raop_sync.len, output.device_frames, output.frames_in_process);
} }
// TODO: better sync logic
if (error < -10 && raop_sync.error < -10) { if (error < -10 && raop_sync.error < -10) {
output.skip_frames = (abs(error + raop_sync.error) / 2 * RAOP_SAMPLE_RATE) / 1000; output.skip_frames = (abs(error + raop_sync.error) / 2 * RAOP_SAMPLE_RATE) / 1000;
output.state = OUTPUT_SKIP_FRAMES; output.state = OUTPUT_SKIP_FRAMES;