aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/base.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-10-07 21:37:56 -0700
committerChris Robinson <[email protected]>2019-10-07 21:37:56 -0700
commit02d80cd74dd7b4517550af2f4ea22c409323a1d9 (patch)
treef72a927a6565d76dc7087f1a15f82733d92b4155 /alc/backends/base.cpp
parentf8ff4e269bf04aae1c430dbb218b4f4f6605df45 (diff)
Use exceptions for backend open failures
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r--alc/backends/base.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp
index a5f66606..4fce0a67 100644
--- a/alc/backends/base.cpp
+++ b/alc/backends/base.cpp
@@ -9,6 +9,7 @@
#include "AL/al.h"
#include "alcmain.h"
+#include "alexcpt.h"
#include "alnumeric.h"
#include "atomic.h"
@@ -29,7 +30,7 @@ BackendBase::BackendBase(ALCdevice *device) noexcept : mDevice{device}
BackendBase::~BackendBase() = default;
bool BackendBase::reset()
-{ return false; }
+{ throw al::backend_exception{ALC_INVALID_VALUE, "Invalid BackendVase call"}; }
ALCenum BackendBase::captureSamples(al::byte*, ALCuint)
{ return ALC_INVALID_DEVICE; }