UWP buildfix

This commit is contained in:
Henrik Rydgård 2023-03-24 15:32:48 +01:00
parent e95662cebf
commit 724f94f8e4
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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{};