From 103e0b6865227f1ada65a7087b097e67f002944c Mon Sep 17 00:00:00 2001 From: evgeny Date: Tue, 20 Oct 2026 16:29:06 +0200 Subject: [PATCH] Keep per-stream playback clocks on the shared audio output --- tools/chatgui/src/streamplayer_window.cpp | 64 ++++++++++------------- tools/chatgui/src/streamplayer_window.h | 7 ++- tools/chatgui/tests/test_stream_view.cpp | 24 +++++++-- 3 files changed, 52 insertions(+), 43 deletions(-) diff --git a/tools/chatgui/src/streamplayer_window.cpp b/tools/chatgui/src/streamplayer_window.cpp index ad4ead8d..f654f808 100644 --- a/tools/chatgui/src/streamplayer_window.cpp +++ b/tools/chatgui/src/streamplayer_window.cpp @@ -51,6 +51,8 @@ struct StreamPlayerWindow::Playback { uint64_t id = ++nextId, group = 0, source = 0, epoch = 0; std::atomic running{true}, audioAvailable{false}; std::atomic volume{1.0f}; + float outputVolume = 0.0f; + uint64_t audioGeneration = 0; std::thread worker; std::mutex lock; std::deque