From 5de721bb4cf3af93de92fc0ea172c5dddfb938f1 Mon Sep 17 00:00:00 2001 From: shenweip <1037567878@qq.com> Date: Sat, 1 Aug 2020 19:50:23 +0800 Subject: [PATCH] minor fix --- Core/HLE/sceKernel.cpp | 2 +- Windows/CaptureDevice.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/HLE/sceKernel.cpp b/Core/HLE/sceKernel.cpp index d84aad032a..685c624cef 100644 --- a/Core/HLE/sceKernel.cpp +++ b/Core/HLE/sceKernel.cpp @@ -272,7 +272,6 @@ void __KernelDoState(PointerWrap &p) __UmdDoState(p); __UtilityDoState(p); __UsbDoState(p); - __UsbMicDoState(p); __VaudioDoState(p); __HeapDoState(p); @@ -282,6 +281,7 @@ void __KernelDoState(PointerWrap &p) __VideoPmpDoState(p); __AACDoState(p); __UsbGpsDoState(p); + __UsbMicDoState(p); // IMPORTANT! Add new sections last! } diff --git a/Windows/CaptureDevice.cpp b/Windows/CaptureDevice.cpp index 4830e1a091..6ae0733e51 100644 --- a/Windows/CaptureDevice.cpp +++ b/Windows/CaptureDevice.cpp @@ -106,8 +106,8 @@ AudioFormatTransform g_AudioFormats[] = { const int g_cVideoFormats = ARRAYSIZE(g_VideoFormats); const int g_cAudioFormats = ARRAYSIZE(g_AudioFormats); -MediaParam defaultVideoParam = { 640, 480, 0, MFVideoFormat_RGB24 }; -MediaParam defaultAudioParam = { 44100, 2, 2, MFAudioFormat_PCM }; +MediaParam defaultVideoParam = { 640, 480, 0, MFVideoFormat_RGB24 }; +MediaParam defaultAudioParam = { 44100, 2, 16, MFAudioFormat_PCM }; HRESULT GetDefaultStride(IMFMediaType *pType, LONG *plStride);