mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
WASAPI: Add error check for RegisterEndpointNotificationCallback
Log a warning if registering for device change notifications fails. This is non-fatal but means automatic device switching won't work.
This commit is contained in:
1 parent
95e09324a7
commit
fd1e48ecc5
1 file changed
+4
-1
@@ -81,7 +81,10 @@ WASAPIContext::WASAPIContext() : notificationClient_(this) {
|
||||
enumerator_ = nullptr;
|
||||
return;
|
||||
}
|
||||
enumerator_->RegisterEndpointNotificationCallback(¬ificationClient_);
|
||||
hr = enumerator_->RegisterEndpointNotificationCallback(¬ificationClient_);
|
||||
if (FAILED(hr)) {
|
||||
WARN_LOG(Log::Audio, "Failed to register endpoint notification callback: %08lx", hr);
|
||||
}
|
||||
}
|
||||
|
||||
WASAPIContext::~WASAPIContext() {
|
||||
|
||||
Reference in new issue
Block a user