From 70b2518751a68635923dc576d8ee0b42d07a3d57 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 27 Aug 2018 19:41:15 -1000 Subject: [PATCH] Window API changes --- lib/win/WindowWin32.cpp | 4 +--- lib/x11/WindowWayland.cpp | 4 +--- lib/x11/WindowXlib.cpp | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/win/WindowWin32.cpp b/lib/win/WindowWin32.cpp index 475a1ac..e73a723 100644 --- a/lib/win/WindowWin32.cpp +++ b/lib/win/WindowWin32.cpp @@ -1259,10 +1259,8 @@ public: return std::unique_ptr(); } - void waitForRetrace(IAudioVoiceEngine* engine) + void waitForRetrace() { - if (engine) - engine->pumpAndMixVoices(); m_gfxCtx->m_output->WaitForVBlank(); } diff --git a/lib/x11/WindowWayland.cpp b/lib/x11/WindowWayland.cpp index 0cdb71f..bb9fca0 100644 --- a/lib/x11/WindowWayland.cpp +++ b/lib/x11/WindowWayland.cpp @@ -205,10 +205,8 @@ struct WindowWayland : IWindow return std::unique_ptr(); } - void waitForRetrace(IAudioVoiceEngine* engine) + void waitForRetrace() { - if (engine) - engine->pumpAndMixVoices(); } uintptr_t getPlatformHandle() const diff --git a/lib/x11/WindowXlib.cpp b/lib/x11/WindowXlib.cpp index a69f50b..4d31bf2 100644 --- a/lib/x11/WindowXlib.cpp +++ b/lib/x11/WindowXlib.cpp @@ -1500,10 +1500,8 @@ public: XSendEvent(m_xDisp, se->requestor, False, 0, &reply); } - void waitForRetrace(IAudioVoiceEngine* engine) + void waitForRetrace() { - if (engine) - engine->pumpAndMixVoices(); std::unique_lock lk(m_gfxCtx->m_vsyncmt); m_gfxCtx->m_vsynccv.wait(lk); }