diff options
author | Chris Robinson <[email protected]> | 2014-11-22 16:23:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-22 16:23:08 -0800 |
commit | a217be15396700c024eaed8264a6233a15595e77 (patch) | |
tree | 4c49c3908f66c245813bc07793fd479d79d87f9e /Alc/ALu.c | |
parent | 637993a7938063ec5e7cc76000b08218faa088e0 (diff) |
Rename Voice's NumChannels to OutChannels
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -146,7 +146,7 @@ static void UpdateDryStepping(DirectParams *params, ALuint num_chans) for(i = 0;i < num_chans;i++) { MixGains *gains = params->Gains[i]; - for(j = 0;j < params->NumChannels;j++) + for(j = 0;j < params->OutChannels;j++) { gains[j].Current = gains[j].Target; gains[j].Step = 1.0f; @@ -160,7 +160,7 @@ static void UpdateDryStepping(DirectParams *params, ALuint num_chans) for(i = 0;i < num_chans;i++) { MixGains *gains = params->Gains[i]; - for(j = 0;j < params->NumChannels;j++) + for(j = 0;j < params->OutChannels;j++) { ALfloat cur = maxf(gains[j].Current, FLT_EPSILON); ALfloat trg = maxf(gains[j].Target, FLT_EPSILON); @@ -330,7 +330,7 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A DirectChannels = ALSource->DirectChannels; voice->Direct.OutBuffer = Device->DryBuffer; - voice->Direct.NumChannels = Device->NumChannels; + voice->Direct.OutChannels = Device->NumChannels; for(i = 0;i < NumSends;i++) { ALeffectslot *Slot = ALSource->Send[i].Slot; @@ -498,8 +498,8 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A { if(Device->Hrtf) { - voice->Direct.OutBuffer = &voice->Direct.OutBuffer[voice->Direct.NumChannels]; - voice->Direct.NumChannels = 2; + voice->Direct.OutBuffer = &voice->Direct.OutBuffer[voice->Direct.OutChannels]; + voice->Direct.OutChannels = 2; for(c = 0;c < num_channels;c++) { MixGains *gains = voice->Direct.Gains[c]; @@ -677,7 +677,7 @@ ALvoid CalcSourceParams(ALvoice *voice, const ALsource *ALSource, const ALCconte RoomRolloffBase = ALSource->RoomRolloffFactor; voice->Direct.OutBuffer = Device->DryBuffer; - voice->Direct.NumChannels = Device->NumChannels; + voice->Direct.OutChannels = Device->NumChannels; for(i = 0;i < NumSends;i++) { ALeffectslot *Slot = ALSource->Send[i].Slot; |