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 41
41
# define CONFIG_CLIENT_TIMEOUT_SEC 5
42
42
#endif
43
43
#ifndef CONFIG_PROCESSING_TIME_MS
44
- # define CONFIG_PROCESSING_TIME_MS 172
44
+ # define CONFIG_PROCESSING_TIME_MS - 172
45
45
#endif
46
46
#ifndef CONFIG_STREAMIN_DECODER_BUFFER
47
47
# define CONFIG_STREAMIN_DECODER_BUFFER (12 * 1024)
Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ class SnapTimeSync {
58
58
// / Provides the effective delay to be used (Message buffer lag -
59
59
// / decoding/playback time)
60
60
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
+ }
62
65
ESP_LOGD (TAG, " delay: %d" , delay);
63
66
return delay;
64
67
}
You can’t perform that action at this time.
0 commit comments