From fe47a2ba095750c2829c307d4b8a3cfc8d61adc3 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 5 Feb 2022 21:26:24 -0500 Subject: [PATCH] GUI: add audio want/got details --- src/engine/engine.cpp | 8 ++++++++ src/engine/engine.h | 6 ++++++ src/gui/gui.cpp | 6 ++++++ 3 files changed, 20 insertions(+) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 48c9679c..4d792448 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -5952,6 +5952,14 @@ void DivEngine::switchMaster() { } } +TAAudioDesc& DivEngine::getAudioDescWant() { + return want; +} + +TAAudioDesc& DivEngine::getAudioDescGot() { + return got; +} + void DivEngine::initDispatch() { isBusy.lock(); for (int i=0; igetAudioDescWant(); + TAAudioDesc& audioGot=e->getAudioDescGot(); + + ImGui::Text("want: %d samples @ %.0fHz\n",audioWant.bufsize,audioWant.rate); + ImGui::Text("got: %d samples @ %.0fHz\n",audioGot.bufsize,audioGot.rate); + ImGui::EndTabItem(); } if (ImGui::BeginTabItem("Emulation")) {