Expose bounded audio log snapshots without consuming playback events

This commit is contained in:
evgeny committed 2026-10-30 21:46:53 +01:00
1 parent d05aed35f9
commit ff992bcd40
2 files changed
+8

No files matched your search

+5
View File
@@ -250,6 +250,11 @@ void call_jitter_record_tx(struct call_jitter* j, const struct call_history_tx*
j->history.transmit(*snapshot);
}
void call_jitter_take_log(struct call_jitter* j, struct call_history_interval* interval, struct call_history_tx* tx) {
std::lock_guard<std::mutex> lock(j->mtx);
j->history.take_log(*interval, *tx);
}
void call_jitter_silence(struct call_jitter* j, unsigned samples) {
if (!j) return;
std::lock_guard<std::mutex> lock(j->mtx);