File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4141# define CONFIG_CLIENT_TIMEOUT_SEC 5
4242#endif
4343#ifndef CONFIG_PROCESSING_TIME_MS
44- # define CONFIG_PROCESSING_TIME_MS 172
44+ # define CONFIG_PROCESSING_TIME_MS - 172
4545#endif
4646#ifndef CONFIG_STREAMIN_DECODER_BUFFER
4747# define CONFIG_STREAMIN_DECODER_BUFFER (12 * 1024)
Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ class SnapTimeSync {
5858 // / Provides the effective delay to be used (Message buffer lag -
5959 // / decoding/playback time)
6060 int getStartDelay () {
61- int delay = std::max (0 , message_buffer_delay_ms - processing_lag);
61+ int delay = std::max (0 , message_buffer_delay_ms + processing_lag);
62+ if (message_buffer_delay_ms + processing_lag < 0 ){
63+ LOGE (" The processing lag can not be smaller then -%d" , message_buffer_delay_ms);
64+ }
6265 ESP_LOGD (TAG, " delay: %d" , delay);
6366 return delay;
6467 }
You can’t perform that action at this time.
0 commit comments