aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-03-27 06:15:39 -0700
committerChris Robinson <[email protected]>2022-03-29 11:48:57 -0700
commit6bc1787a3bc1d578cbafe2293549b8999cf3860e (patch)
tree19b3ed4dc4e80743b274b1e405af6d7834839cc8 /alc/alc.cpp
parent4ca8992fbd8a367973f23046a4f6b23980090e18 (diff)
Make and use a Default enum for StereoEncoding
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index f6bbcb59..c71d84ae 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1755,10 +1755,10 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
else if(device->FmtChans == DevFmtStereo)
{
if(opthrtf)
- stereomode = *opthrtf ? StereoEncoding::Hrtf : StereoEncoding::Normal;
+ stereomode = *opthrtf ? StereoEncoding::Hrtf : StereoEncoding::Default;
if(outmode == ALC_STEREO_BASIC_SOFT)
- stereomode = StereoEncoding::Normal;
+ stereomode = StereoEncoding::Basic;
else if(outmode == ALC_STEREO_UHJ_SOFT)
stereomode = StereoEncoding::Uhj;
else if(outmode == ALC_STEREO_HRTF_SOFT)
@@ -1802,7 +1802,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
stereomode = StereoEncoding::Hrtf;
}
else
- stereomode = StereoEncoding::Normal;
+ stereomode = StereoEncoding::Default;
}
using OutputMode = ALCdevice::OutputMode;
@@ -1813,7 +1813,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
case OutputMode::Stereo: set_device_mode(DevFmtStereo); break;
case OutputMode::StereoBasic:
set_device_mode(DevFmtStereo);
- stereomode = StereoEncoding::Normal;
+ stereomode = StereoEncoding::Basic;
break;
case OutputMode::Uhj2:
set_device_mode(DevFmtStereo);
@@ -1994,7 +1994,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
else if(al::strcasecmp(hrtf, "false") == 0)
{
if(!stereomode || *stereomode == StereoEncoding::Hrtf)
- stereomode = StereoEncoding::Normal;
+ stereomode = StereoEncoding::Default;
}
else if(al::strcasecmp(hrtf, "auto") != 0)
ERR("Unexpected hrtf value: %s\n", hrtf);
@@ -2060,7 +2060,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
{
const char *mode{encopt->c_str()};
if(al::strcasecmp(mode, "panpot") == 0)
- stereomode = al::make_optional(StereoEncoding::Normal);
+ stereomode = al::make_optional(StereoEncoding::Basic);
else if(al::strcasecmp(mode, "uhj") == 0)
stereomode = al::make_optional(StereoEncoding::Uhj);
else if(al::strcasecmp(mode, "hrtf") == 0)