aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-04-08 10:15:43 -0700
committerChris Robinson <[email protected]>2020-04-08 10:15:43 -0700
commitd67cba99bd97d42e7e52c6dfd7a08c288b1539c0 (patch)
tree014425832a37173da8d9c3b2377526ce41d58d36 /alc/alc.cpp
parent8a5153ce0dee072c283b04ff5a61faa764f81743 (diff)
Clean up some more unnecessary uses of AL types
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index f5119c15..021097a3 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1247,7 +1247,7 @@ void ProbeCaptureDeviceList()
} // namespace
/* Mixing thread piority level */
-ALint RTPrioLevel{1};
+int RTPrioLevel{1};
FILE *gLogFile{stderr};
#ifdef _DEBUG
@@ -2123,24 +2123,23 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(GetConfigValueBool(device->DeviceName.c_str(), nullptr, "dither", 1))
{
- ALint depth{
- ConfigValueInt(device->DeviceName.c_str(), nullptr, "dither-depth").value_or(0)};
+ int depth{ConfigValueInt(device->DeviceName.c_str(), nullptr, "dither-depth").value_or(0)};
if(depth <= 0)
{
switch(device->FmtType)
{
- case DevFmtByte:
- case DevFmtUByte:
- depth = 8;
- break;
- case DevFmtShort:
- case DevFmtUShort:
- depth = 16;
- break;
- case DevFmtInt:
- case DevFmtUInt:
- case DevFmtFloat:
- break;
+ case DevFmtByte:
+ case DevFmtUByte:
+ depth = 8;
+ break;
+ case DevFmtShort:
+ case DevFmtUShort:
+ depth = 16;
+ break;
+ case DevFmtInt:
+ case DevFmtUInt:
+ case DevFmtFloat:
+ break;
}
}