aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/portaudio.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/portaudio.cpp
parent360330b2add6cf10776c38aaa186b0892b54e300 (diff)
Clean up some exception messages and avoid duplicate log messages
Diffstat (limited to 'alc/backends/portaudio.cpp')
-rw-r--r--alc/backends/portaudio.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/alc/backends/portaudio.cpp b/alc/backends/portaudio.cpp
index ba8e4984..7c60d2bb 100644
--- a/alc/backends/portaudio.cpp
+++ b/alc/backends/portaudio.cpp
@@ -166,7 +166,6 @@ retry_open:
mParams.sampleFormat = paInt16;
goto retry_open;
}
- ERR("Pa_OpenStream() returned an error: %s\n", Pa_GetErrorText(err));
throw al::backend_exception{ALC_INVALID_VALUE, "Failed to open stream: %s",
Pa_GetErrorText(err)};
}
@@ -314,7 +313,6 @@ void PortCapture::open(const ALCchar *name)
break;
case DevFmtUInt:
case DevFmtUShort:
- ERR("%s samples not supported\n", DevFmtTypeString(mDevice->FmtType));
throw al::backend_exception{ALC_INVALID_VALUE, "%s samples not supported",
DevFmtTypeString(mDevice->FmtType)};
}
@@ -323,11 +321,8 @@ void PortCapture::open(const ALCchar *name)
PaError err{Pa_OpenStream(&mStream, &mParams, nullptr, mDevice->Frequency,
paFramesPerBufferUnspecified, paNoFlag, &PortCapture::readCallbackC, this)};
if(err != paNoError)
- {
- ERR("Pa_OpenStream() returned an error: %s\n", Pa_GetErrorText(err));
throw al::backend_exception{ALC_INVALID_VALUE, "Failed to open stream: %s",
Pa_GetErrorText(err)};
- }
mDevice->DeviceName = name;
}