diff options
author | Chris Robinson <[email protected]> | 2010-11-26 17:47:43 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-11-26 17:47:43 -0800 |
commit | facb922f3e1d39af8514916c990acd9ff9d8baae (patch) | |
tree | 9547190fa5d1a07dbfb7acc773e483b0d476130e /Alc/mixer.c | |
parent | d7987677ac5748576626b0ed7f47d2e607bb4e77 (diff) |
Properly clamp high pitch values
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index 53ba4aca..18c93b84 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -612,12 +612,6 @@ DECL_TEMPLATE(ALubyte, cubic8) #undef DECL_TEMPLATE -/* Stack data size can be whatever. Larger values need more stack, while - * smaller values may need more iterations */ -#ifndef STACK_DATA_SIZE -#define STACK_DATA_SIZE 16384 -#endif - ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) { ALbufferlistitem *BufferListItem; @@ -859,17 +853,6 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) BufferSize = (ALuint)((DataSize64+(increment-1)) / increment); BufferSize = min(BufferSize, (SamplesToDo-OutPos)); - if(BufferSize == 0) - { - AL_PRINT("No samples to mix! Pitch too high (%u, %g)?\n", - increment, increment/(double)FRACTIONONE); - State = AL_STOPPED; - BufferListItem = Source->queue; - BuffersPlayed = Source->BuffersInQueue; - DataPosInt = 0; - DataPosFrac = 0; - break; - } SrcData += BufferPrePadding*FrameSize; switch(Resampler) |