aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-13 02:17:19 -0800
committerChris Robinson <[email protected]>2023-01-13 02:17:19 -0800
commit63921a94bcc8c0ea135e0b0058291e6185cd5871 (patch)
tree7537080b57f312a26c1821a9623e2e0930996395 /alc
parent4bf946136967f309459ae5c9e3e0d162fc977c3e (diff)
Avoid a dead store
Diffstat (limited to 'alc')
-rw-r--r--alc/alc.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 654f3fb2..a7c36d5c 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1666,7 +1666,6 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
const double scale{static_cast<double>(*optsrate) / DEFAULT_OUTPUT_RATE};
period_size = static_cast<uint>(period_size*scale + 0.5);
- buffer_size = static_cast<uint>(buffer_size*scale + 0.5);
}
if(auto persizeopt = device->configValue<uint>(nullptr, "period_size"))