From 06f5f0b7c8bf22fe24acd2baf0cffd7a75456672 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 17 May 2011 13:25:15 -0700 Subject: Make mixers channel-count agnostic As a result, this combines/removes a bunch of mixers --- OpenAL32/alSource.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenAL32/alSource.c') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index fd77527f..11f472c2 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -566,6 +566,7 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) Source->queue = BufferListItem; Source->BuffersInQueue = 1; + Source->NumChannels = ChannelsFromFmt(buffer->FmtChannels); if(buffer->FmtChannels == FmtMono) Source->Update = CalcSourceParams; else @@ -1611,6 +1612,7 @@ AL_API ALvoid AL_APIENTRY alSourceQueueBuffers(ALuint source, ALsizei n, const A { BufferFmt = buffer; + Source->NumChannels = ChannelsFromFmt(buffer->FmtChannels); if(buffer->FmtChannels == FmtMono) Source->Update = CalcSourceParams; else -- cgit v1.2.3