MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / check_overlap

Method check_overlap

src/task_manager/TaskManager.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136bool TaskManager::check_overlap(Provider * provider) {
137 float est = 0;
138 if (provider == audio_player.source) {
139 est = _mean_i2s + 2 * _std_i2s;
140 } else if (provider == recorder.target) {
141 est = _mean_pdm + 2 * _std_pdm;
142 }
143 return (millis() - _edge_ml_last + est > _buffer_interval_time);
144}
145
146TaskManager task_manager;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected