diff options
author | Chris Robinson <[email protected]> | 2020-12-17 23:21:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-17 23:21:45 -0800 |
commit | 6ae0115bf7cb07e54f6e3b32bea08ebbd8cebea6 (patch) | |
tree | 2ea7a75aa8fa38bf21d0a683132483a4280624b1 /alc/alc.cpp | |
parent | 5edd5a11fc16147ee25566db75732533005d1f46 (diff) |
Avoid AL/ALC types in the backends
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 1a45cbe3..67787ab6 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2130,7 +2130,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) uint64_t usemask{~sublist.FreeMask}; while(usemask) { - const ALsizei idx{CountTrailingZeros(usemask)}; + const int idx{CountTrailingZeros(usemask)}; ALeffectslot *slot{sublist.EffectSlots + idx}; usemask &= ~(1_u64 << idx); @@ -2153,7 +2153,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) uint64_t usemask{~sublist.FreeMask}; while(usemask) { - const ALsizei idx{CountTrailingZeros(usemask)}; + const int idx{CountTrailingZeros(usemask)}; ALsource *source{sublist.Sources + idx}; usemask &= ~(1_u64 << idx); @@ -2724,7 +2724,7 @@ START_API_FUNC END_API_FUNC -static inline ALCsizei NumAttrsForDevice(ALCdevice *device) +static inline int NumAttrsForDevice(ALCdevice *device) { if(device->Type == DeviceType::Capture) return 9; if(device->Type != DeviceType::Loopback) return 29; |