summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/WASAPIStream.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2021-12-12 13:50:18 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-09 12:44:55 -0800
commitca9bf3174f4acd4c9d78ac7c21b6aeaa1430b7ef (patch)
treee97af4fd1e5319cb74567f7c434d5084d9e1c4a5 /Source/Core/AudioCommon/WASAPIStream.cpp
parent1b32e6dae23835c020a7ea44d14a88e6b55b0353 (diff)
Use HRWrap in remaining locations
Note that D3DCommon can't use DX11HRWrap or DX12HRWrap since it's shared between them.
Diffstat (limited to 'Source/Core/AudioCommon/WASAPIStream.cpp')
-rw-r--r--Source/Core/AudioCommon/WASAPIStream.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/AudioCommon/WASAPIStream.cpp b/Source/Core/AudioCommon/WASAPIStream.cpp
index 2a15e08195..db111a64dd 100644
--- a/Source/Core/AudioCommon/WASAPIStream.cpp
+++ b/Source/Core/AudioCommon/WASAPIStream.cpp
@@ -17,6 +17,7 @@
#include <thread>
#include "Common/Assert.h"
+#include "Common/HRWrap.h"
#include "Common/Logging/Log.h"
#include "Common/StringUtil.h"
#include "Common/Thread.h"
@@ -66,11 +67,11 @@ static bool HandleWinAPI(std::string_view message, HRESULT result)
error = "Audio endpoint already in use!";
break;
default:
- error = TStrToUTF8(_com_error(result).ErrorMessage()).c_str();
+ error = Common::GetHResultMessage(result);
break;
}
- ERROR_LOG_FMT(AUDIO, "WASAPI: {}: {}", message, error);
+ ERROR_LOG_FMT(AUDIO, "WASAPI: {}: {} ({:08x})", message, error, result);
}
return SUCCEEDED(result);