diff options
author | Chris Robinson <[email protected]> | 2020-12-17 21:07:53 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-17 21:07:53 -0800 |
commit | 5edd5a11fc16147ee25566db75732533005d1f46 (patch) | |
tree | 7f6e89f7c7afcb150a57b40f8aa5c25baf26c43e /alc/backends/base.cpp | |
parent | 7d2e21334c5bc6423abed3b450d369829d7c1fde (diff) |
Don't use ALC error enums for the backend error code
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r-- | alc/backends/base.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp index b33e0c6d..6e78ae26 100644 --- a/alc/backends/base.cpp +++ b/alc/backends/base.cpp @@ -23,7 +23,7 @@ bool BackendBase::reset() -{ throw al::backend_exception{ALC_INVALID_DEVICE, "Invalid BackendBase call"}; } +{ throw al::backend_exception{al::backend_error::DeviceError, "Invalid BackendBase call"}; } void BackendBase::captureSamples(al::byte*, uint) { } @@ -150,7 +150,7 @@ void BackendBase::setDefaultChannelOrder() } #ifdef _WIN32 -void BackendBase::setChannelOrderFromWFXMask(ALuint chanmask) +void BackendBase::setChannelOrderFromWFXMask(uint chanmask) { auto get_channel = [](const DWORD chanbit) noexcept -> al::optional<Channel> { |