aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-22 13:03:09 -0800
committerChris Robinson <[email protected]>2014-11-22 13:08:19 -0800
commitdece86f61f975c7a6f3bcc1d00bd4cf97dcdbcab (patch)
treec60406d0b4888eb3dabd36883d0e2768d6ded5f9 /Alc/ALu.c
parentfb511351dfe1db70af47b27dfded83d588f61faf (diff)
Store the number of output channels in the voice
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 57af55bf..a5541da8 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -330,6 +330,7 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A
DirectChannels = ALSource->DirectChannels;
voice->Direct.OutBuffer = Device->DryBuffer;
+ voice->Direct.NumChannels = Device->NumChannels;
for(i = 0;i < NumSends;i++)
{
ALeffectslot *Slot = ALSource->Send[i].Slot;
@@ -659,6 +660,7 @@ ALvoid CalcSourceParams(ALvoice *voice, const ALsource *ALSource, const ALCconte
RoomRolloffBase = ALSource->RoomRolloffFactor;
voice->Direct.OutBuffer = Device->DryBuffer;
+ voice->Direct.NumChannels = Device->NumChannels;
for(i = 0;i < NumSends;i++)
{
ALeffectslot *Slot = ALSource->Send[i].Slot;