aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-26 17:47:43 -0800
committerChris Robinson <[email protected]>2010-11-26 17:47:43 -0800
commitfacb922f3e1d39af8514916c990acd9ff9d8baae (patch)
tree9547190fa5d1a07dbfb7acc773e483b0d476130e /Alc/mixer.c
parentd7987677ac5748576626b0ed7f47d2e607bb4e77 (diff)
Properly clamp high pitch values
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c17
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)