aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/dsound.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-10-08 05:44:38 -0700
committerChris Robinson <[email protected]>2019-10-08 05:44:38 -0700
commit7726a06d26e59dc6a8e109af2e268de878c4f606 (patch)
tree3fdea7f120e21def8e52b89d335f63aa38372497 /alc/backends/dsound.cpp
parent360330b2add6cf10776c38aaa186b0892b54e300 (diff)
Clean up some exception messages and avoid duplicate log messages
Diffstat (limited to 'alc/backends/dsound.cpp')
-rw-r--r--alc/backends/dsound.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/alc/backends/dsound.cpp b/alc/backends/dsound.cpp
index d48b74e2..005c9584 100644
--- a/alc/backends/dsound.cpp
+++ b/alc/backends/dsound.cpp
@@ -341,10 +341,7 @@ void DSoundPlayback::open(const ALCchar *name)
if(SUCCEEDED(hr))
hr = mDS->SetCooperativeLevel(GetForegroundWindow(), DSSCL_PRIORITY);
if(FAILED(hr))
- {
- ERR("Device init failed: 0x%08lx\n", hr);
throw al::backend_exception{ALC_INVALID_VALUE, "Device init failed: 0x%08lx", hr};
- }
mDevice->DeviceName = name;
}
@@ -753,8 +750,6 @@ void DSoundCapture::open(const ALCchar *name)
if(FAILED(hr))
{
- ERR("Device init failed: 0x%08lx\n", hr);
-
mRing = nullptr;
if(mDSCbuffer)
mDSCbuffer->Release();