From 52096234e117273fba4b258d789a58580c56ba88 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 2 Jul 2013 06:57:27 -0700 Subject: Limit the source step to 10 This means the combination of the buffer frequency, source pitch, and doppler shift can't exceed 10x the device playback frequency. This is needed to keep the mixer from starving with a really high increment, causing small DstBufferSize values that require a lot of iterations. --- OpenAL32/alAuxEffectSlot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32/alAuxEffectSlot.c') diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index b3d0d826..eec41081 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -546,7 +546,7 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e ALenum InitEffectSlot(ALeffectslot *slot) { ALeffectStateFactory *factory; - ALint i, c; + ALuint i, c; slot->EffectType = AL_EFFECT_NULL; -- cgit v1.2.3