diff options
author | Chris Robinson <[email protected]> | 2020-12-04 13:53:56 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-04 13:53:56 -0800 |
commit | 50e33ce8f49fdf40a9c48871d63e2cb49d72c94f (patch) | |
tree | 71273dd81371f9b14db1ffe138baf769f471d886 /alc/alc.cpp | |
parent | c4132b80ede60ead27fae595623ac61674ed166a (diff) |
Change some macros into constexpr variables
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 00008a81..2e416d00 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1775,7 +1775,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) { if(!optlayout || !optscale) return ALC_INVALID_VALUE; - if(aorder < 1 || aorder > MAX_AMBI_ORDER) + if(aorder < 1 || aorder > MaxAmbiOrder) return ALC_INVALID_VALUE; if((*optlayout == DevAmbiLayout::FuMa || *optscale == DevAmbiScaling::FuMa) && aorder > 3) @@ -2890,7 +2890,7 @@ static size_t GetIntegerv(ALCdevice *device, ALCenum param, const al::span<int> values[i++] = device->Limiter ? ALC_TRUE : ALC_FALSE; values[i++] = ALC_MAX_AMBISONIC_ORDER_SOFT; - values[i++] = MAX_AMBI_ORDER; + values[i++] = MaxAmbiOrder; values[i++] = 0; } @@ -3023,7 +3023,7 @@ static size_t GetIntegerv(ALCdevice *device, ALCenum param, const al::span<int> return 1; case ALC_MAX_AMBISONIC_ORDER_SOFT: - values[0] = MAX_AMBI_ORDER; + values[0] = MaxAmbiOrder; return 1; default: |