From 724f94f8e4e66622d85c34a9c67eb81d28dee28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 24 Mar 2023 15:32:48 +0100 Subject: [PATCH] UWP buildfix --- UI/NativeApp.cpp | 2 +- UWP/XAudioSoundStream.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 436c38a1c0..a43a72f22a 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -850,7 +850,7 @@ bool NativeInitGraphics(GraphicsContext *graphicsContext) { #ifdef _WIN32 winAudioBackend = CreateAudioBackend((AudioBackendType)g_Config.iAudioBackend); #if PPSSPP_PLATFORM(UWP) - winAudioBackend->Init(0, &Win32Mix, 44100); + winAudioBackend->Init(0, &NativeMix, 44100); #else winAudioBackend->Init(MainWindow::GetHWND(), &NativeMix, 44100); #endif diff --git a/UWP/XAudioSoundStream.cpp b/UWP/XAudioSoundStream.cpp index e341712339..1e3ee6d0bb 100644 --- a/UWP/XAudioSoundStream.cpp +++ b/UWP/XAudioSoundStream.cpp @@ -155,7 +155,7 @@ void XAudioBackend::PollLoop() { // take ownership of the data. It needs to be big enough to fit the max number of buffers we check for // above, which it is, easily. - int stereoSamplesRendered = (*callback_)((short*)&realtimeBuffer_[cursor_], readCount / 4, 16, sampleRate_); + int stereoSamplesRendered = (*callback_)((short*)&realtimeBuffer_[cursor_], readCount / 4, sampleRate_); int numBytesRendered = 2 * sizeof(short) * stereoSamplesRendered; XAUDIO2_BUFFER xaudioBuffer{};