From 4d1ac95ae2ef1ca3a20205b4cc9893b02f0c7c22 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 17 Dec 2020 03:06:52 -0800 Subject: Don't return an enum from captureSamples It's always no_error --- alc/backends/base.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'alc/backends/base.cpp') 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 #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)) -- cgit v1.2.3