aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-24 01:07:13 -0700
committerChris Robinson <[email protected]>2010-05-24 01:07:13 -0700
commit8cfac7c6b8b1243e5e77bf2946820c79d18d8997 (patch)
treeb8245be58e31b623ee2405cceb9eb7d4da7c9440 /Alc/ALu.c
parent9ac6b4c2c84ddbe89ec1db42f92c6e13dadfcc6e (diff)
Don't bother storing the loop points in the source
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index bb7cc553..d0f6a112 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -932,7 +932,6 @@ static void MixSomeSources(ALCcontext *ALContext, float (*DryBuffer)[OUTPUTCHANN
ALuint DataPosInt, DataPosFrac;
ALuint Channels, Bytes;
ALuint Frequency;
- ALuint LoopStart, LoopEnd;
resampler_t Resampler;
ALuint BuffersPlayed;
ALboolean Looping;
@@ -993,8 +992,6 @@ next_source:
DataPosInt = ALSource->position;
DataPosFrac = ALSource->position_fraction;
Looping = ALSource->bLooping;
- LoopStart = ALSource->LoopStart;
- LoopEnd = ALSource->LoopEnd;
/* Compute 18.14 fixed point step */
Pitch = (ALSource->Params.Pitch*Frequency) / DeviceFreq;
@@ -1033,6 +1030,8 @@ next_source:
while(State == AL_PLAYING && j < SamplesToDo)
{
+ ALuint LoopStart = 0;
+ ALuint LoopEnd = 0;
ALuint DataSize = 0;
ALbuffer *ALBuffer;
ALfloat *Data;
@@ -1044,6 +1043,8 @@ next_source:
Data = ALBuffer->data;
DataSize = ALBuffer->size;
DataSize /= Channels * Bytes;
+ LoopStart = ALBuffer->LoopStart;
+ LoopEnd = ALBuffer->LoopEnd;
}
if(DataPosInt >= DataSize)
goto skipmix;