diff options
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index e427362c..61dfe00b 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -446,21 +446,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) Looping = Source->bLooping; increment = Source->Params.Step; Resampler = Source->Resampler; - - /* Get buffer info */ - FrameSize = 0; - BufferListItem = Source->queue; - for(i = 0;i < Source->BuffersInQueue;i++) - { - const ALbuffer *ALBuffer; - if((ALBuffer=BufferListItem->buffer) != NULL) - { - FrameSize = FrameSizeFromFmt(ALBuffer->FmtChannels, - ALBuffer->FmtType); - break; - } - BufferListItem = BufferListItem->next; - } + FrameSize = Source->NumChannels * Source->SampleSize; /* Get current buffer queue item */ BufferListItem = Source->queue; |