aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-23 09:52:01 -0700
committerChris Robinson <[email protected]>2011-08-23 09:55:22 -0700
commitf5195ee4f27f4c0bc5ea87dde6638a4a8ad97005 (patch)
treec5d3dc0be4b83e20abc54a44bbcbae739c43fd2b /Alc/mixer.c
parent9f25ad42c1407ff1ddebf5e1d72b9de7f9957d9f (diff)
Remove the Buffer field from the source
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index a4197341..eb7e433f 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -597,7 +597,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
if(Source->lSourceType == AL_STATIC)
{
- const ALbuffer *ALBuffer = Source->Buffer;
+ const ALbuffer *ALBuffer = Source->queue->buffer;
const ALubyte *Data = ALBuffer->data;
ALuint DataSize;
ALuint pos;
@@ -833,7 +833,6 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
Source->BuffersPlayed = BuffersPlayed;
Source->position = DataPosInt;
Source->position_fraction = DataPosFrac;
- Source->Buffer = BufferListItem->buffer;
Source->HrtfOffset += OutPos;
if(State == AL_PLAYING)
{