[APU+HID] Optimizations

This commit is contained in:
Margen67 2022-11-03 03:56:13 -07:00
parent b23566b823
commit 4ba14bc35e
2 changed files with 2 additions and 10 deletions

View file

@ -71,14 +71,9 @@ bool XAudio2AudioDriver::Initialize() {
} }
} }
if (!xaudio2_module_) { if (!xaudio2_module_) {
xaudio2_module_ = static_cast<void*>(LoadLibraryW(L"XAudio2_7.dll")); XELOGE("Failed to load XAudio 2.8 library DLL");
if (xaudio2_module_) {
api_minor_version_ = 7;
} else {
XELOGE("Failed to load XAudio 2.8 or 2.7 library DLL");
return false; return false;
} }
}
// We need to be able to accept frames from any non-STA thread - primarily // We need to be able to accept frames from any non-STA thread - primarily
// from any guest thread, so MTA needs to be used. The AudioDriver, however, // from any guest thread, so MTA needs to be used. The AudioDriver, however,

View file

@ -45,9 +45,6 @@ XInputInputDriver::~XInputInputDriver() {
X_STATUS XInputInputDriver::Setup() { X_STATUS XInputInputDriver::Setup() {
HMODULE module = LoadLibraryW(L"xinput1_4.dll"); HMODULE module = LoadLibraryW(L"xinput1_4.dll");
if (!module) {
module = LoadLibraryW(L"xinput1_3.dll");
}
if (!module) { if (!module) {
return X_STATUS_DLL_NOT_FOUND; return X_STATUS_DLL_NOT_FOUND;
} }