mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
UWP buildfix
This commit is contained in:
1 parent
e95662cebf
commit
724f94f8e4
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
@@ -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{};
|
||||
|
||||
Reference in new issue
Block a user