From 4bfaf860bfc2575c7dcfa5192902bfef35a36234 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 16 Apr 2022 03:49:22 -0700 Subject: Include ALC_OUTPUT_MODE_SOFT with ALC_ALL_ATTRIBUTES --- alc/alc.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'alc/alc.cpp') 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 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 values[i++] = ALC_MAX_AMBISONIC_ORDER_SOFT; values[i++] = MaxAmbiOrder; + values[i++] = ALC_OUTPUT_MODE_SOFT; + values[i++] = static_cast(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 _{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(device->getOutputMode1()); + values[i++] = 0; } break; -- cgit v1.2.3