diff options
author | Chris Robinson <[email protected]> | 2020-12-17 03:06:52 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-17 03:06:52 -0800 |
commit | 4d1ac95ae2ef1ca3a20205b4cc9893b02f0c7c22 (patch) | |
tree | 6d10b74a983ee2495704f010d554f5bfb26e63af /alc/backends/base.cpp | |
parent | d578bc6cb1b9bce4954ded9b138d51980163c233 (diff) |
Don't return an enum from captureSamples
It's always no_error
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r-- | alc/backends/base.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp index 9d8d0c64..b33e0c6d 100644 --- a/alc/backends/base.cpp +++ b/alc/backends/base.cpp @@ -12,7 +12,7 @@ #include <mmreg.h> #endif -#include "AL/al.h" +#include "AL/alc.h" #include "alcmain.h" #include "alexcpt.h" @@ -25,17 +25,17 @@ bool BackendBase::reset() { throw al::backend_exception{ALC_INVALID_DEVICE, "Invalid BackendBase call"}; } -ALCenum BackendBase::captureSamples(al::byte*, ALCuint) -{ return ALC_INVALID_DEVICE; } +void BackendBase::captureSamples(al::byte*, uint) +{ } -ALCuint BackendBase::availableSamples() +uint BackendBase::availableSamples() { return 0; } ClockLatency BackendBase::getClockLatency() { ClockLatency ret; - ALuint refcount; + uint refcount; do { refcount = mDevice->waitForMix(); ret.ClockTime = GetDeviceClockTime(mDevice); @@ -179,12 +179,12 @@ void BackendBase::setChannelOrderFromWFXMask(ALuint chanmask) return al::nullopt; }; - const ALuint numchans{mDevice->channelsFromFmt()}; - ALuint idx{0}; + const uint numchans{mDevice->channelsFromFmt()}; + uint idx{0}; while(chanmask) { const int bit{CountTrailingZeros(chanmask)}; - const ALuint mask{1u << bit}; + const uint mask{1u << bit}; chanmask &= ~mask; if(auto label = get_channel(mask)) |