aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-11-28 12:53:35 -0800
committerChris Robinson <[email protected]>2010-11-28 12:53:35 -0800
commitc41e893361f4c912b8c6c4c703bf7590c957318d (patch)
treeddb037cd77a117c5c7d0ce2c3b31fbb8d992569d /Alc/mixer.c
parent2fd8d6916bae6b681f065e5dfe1f962641f41533 (diff)
Don't store the internal format in the buffer
The type and channel config are good enough
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index ecf3d062..76ae9d86 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -749,9 +749,9 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
const ALbuffer *ALBuffer;
if((ALBuffer=BufferListItem->buffer) != NULL)
{
- FrameSize = aluFrameSizeFromFormat(ALBuffer->format);
FmtChannels = ALBuffer->FmtChannels;
FmtType = ALBuffer->FmtType;
+ FrameSize = FrameSizeFromFmt(FmtType, FmtChannels);
break;
}
BufferListItem = BufferListItem->next;