aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-22 16:23:08 -0800
committerChris Robinson <[email protected]>2014-11-22 16:23:08 -0800
commita217be15396700c024eaed8264a6233a15595e77 (patch)
tree4c49c3908f66c245813bc07793fd479d79d87f9e
parent637993a7938063ec5e7cc76000b08218faa088e0 (diff)
Rename Voice's NumChannels to OutChannels
-rw-r--r--Alc/ALu.c12
-rw-r--r--Alc/mixer.c2
-rw-r--r--OpenAL32/Include/alu.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 3edd6c40..f7408da0 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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;
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 4f10c629..4a98ee8f 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -415,7 +415,7 @@ ALvoid MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALuint Sam
Device->FilteredData, ResampledData, DstBufferSize,
parms->Filters[chan].ActiveType
);
- Mix(samples, parms->NumChannels, parms->OutBuffer, parms->Gains[chan],
+ Mix(samples, parms->OutChannels, parms->OutBuffer, parms->Gains[chan],
parms->Counter, OutPos, DstBufferSize);
}
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index c96d5563..56c37fe8 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -58,7 +58,7 @@ typedef struct MixGains {
typedef struct DirectParams {
ALfloat (*OutBuffer)[BUFFERSIZE];
- ALuint NumChannels;
+ ALuint OutChannels;
/* If not 'moving', gain/coefficients are set directly without fading. */
ALboolean Moving;