diff options
author | Chris Robinson <[email protected]> | 2022-04-16 03:49:22 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-04-16 03:49:22 -0700 |
commit | 4bfaf860bfc2575c7dcfa5192902bfef35a36234 (patch) | |
tree | 6c9947f9a98bb001de16c1e43e9a2b35b178ce5d /alc/alc.cpp | |
parent | 144e30a9490fd86ca6ee00fdd3823ed3e99529c1 (diff) |
Include ALC_OUTPUT_MODE_SOFT with ALC_ALL_ATTRIBUTES
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index d48c81e9..ee89b60a 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2703,8 +2703,8 @@ static size_t GetIntegerv(ALCdevice *device, ALCenum param, const al::span<int> auto NumAttrsForDevice = [](ALCdevice *aldev) noexcept { if(aldev->Type == DeviceType::Loopback && aldev->FmtChans == DevFmtAmbi3D) - return 35; - return 29; + return 37; + return 31; }; switch(param) { @@ -2779,6 +2779,9 @@ static size_t GetIntegerv(ALCdevice *device, ALCenum param, const al::span<int> values[i++] = ALC_MAX_AMBISONIC_ORDER_SOFT; values[i++] = MaxAmbiOrder; + values[i++] = ALC_OUTPUT_MODE_SOFT; + values[i++] = static_cast<ALCenum>(device->getOutputMode1()); + values[i++] = 0; } return i; @@ -2945,8 +2948,8 @@ START_API_FUNC auto NumAttrsForDevice = [](ALCdevice *aldev) noexcept { if(aldev->Type == DeviceType::Loopback && aldev->FmtChans == DevFmtAmbi3D) - return 39; - return 33; + return 41; + return 35; }; std::lock_guard<std::mutex> _{dev->StateLock}; switch(pname) @@ -3018,6 +3021,9 @@ START_API_FUNC values[i++] = ALC_DEVICE_LATENCY_SOFT; values[i++] = clock.Latency.count(); + values[i++] = ALC_OUTPUT_MODE_SOFT; + values[i++] = static_cast<ALCenum>(device->getOutputMode1()); + values[i++] = 0; } break; |