aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-09-30 12:08:01 -0700
committerChris Robinson <[email protected]>2018-09-30 12:08:01 -0700
commit1860b2ec8a1927ce98e516f498dbdf19419ae0a6 (patch)
tree85dab3bee6298b9c20cd6f1ca003b43fd56801cb /Alc/ALc.c
parent7ad4f753a42a4ff9c4ce2be0a848f8aaccb86454 (diff)
Make the Compressor struct opaque
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 70663780..de6a2b75 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2254,8 +2254,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
al_free(device->Limiter);
device->Limiter = CreateDeviceLimiter(device, log10f(thrshld) * 20.0f);
- device->FixedLatency += (ALuint)(device->Limiter->LookAhead * DEVICE_CLOCK_RES /
- device->Frequency);
+ device->FixedLatency += (ALuint)(GetCompressorLookAhead(device->Limiter) *
+ DEVICE_CLOCK_RES / device->Frequency);
}
else
{