diff options
author | Chris Robinson <[email protected]> | 2012-04-19 21:46:29 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-19 21:46:29 -0700 |
commit | 125b743e5cd9b37420e4b0d57e0c3f6502784f2f (patch) | |
tree | 0a875b9b6587a8c0d2fc24de7f030d81f5d9cefa /Alc | |
parent | 9a3eb397f4e39b293b6dfd3f539161fde3c70977 (diff) |
Remove hungarian notation from sources
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 50 | ||||
-rw-r--r-- | Alc/mixer.c | 6 |
2 files changed, 28 insertions, 28 deletions
@@ -133,10 +133,10 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ListenerGain = ALContext->Listener.Gain; /* Get source properties */ - SourceVolume = ALSource->flGain; - MinVolume = ALSource->flMinGain; - MaxVolume = ALSource->flMaxGain; - Pitch = ALSource->flPitch; + SourceVolume = ALSource->Gain; + MinVolume = ALSource->MinGain; + MaxVolume = ALSource->MaxGain; + Pitch = ALSource->Pitch; Resampler = ALSource->Resampler; DirectChannels = ALSource->DirectChannels; @@ -389,25 +389,25 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ListenerVel[2] = ALContext->Listener.Velocity[2]; //Get source properties - SourceVolume = ALSource->flGain; - MinVolume = ALSource->flMinGain; - MaxVolume = ALSource->flMaxGain; - Pitch = ALSource->flPitch; + SourceVolume = ALSource->Gain; + MinVolume = ALSource->MinGain; + MaxVolume = ALSource->MaxGain; + Pitch = ALSource->Pitch; Resampler = ALSource->Resampler; - Position[0] = ALSource->vPosition[0]; - Position[1] = ALSource->vPosition[1]; - Position[2] = ALSource->vPosition[2]; - Direction[0] = ALSource->vOrientation[0]; - Direction[1] = ALSource->vOrientation[1]; - Direction[2] = ALSource->vOrientation[2]; - Velocity[0] = ALSource->vVelocity[0]; - Velocity[1] = ALSource->vVelocity[1]; - Velocity[2] = ALSource->vVelocity[2]; - MinDist = ALSource->flRefDistance; - MaxDist = ALSource->flMaxDistance; - Rolloff = ALSource->flRollOffFactor; - InnerAngle = ALSource->flInnerAngle * ConeScale; - OuterAngle = ALSource->flOuterAngle * ConeScale; + Position[0] = ALSource->Position[0]; + Position[1] = ALSource->Position[1]; + Position[2] = ALSource->Position[2]; + Direction[0] = ALSource->Orientation[0]; + Direction[1] = ALSource->Orientation[1]; + Direction[2] = ALSource->Orientation[2]; + Velocity[0] = ALSource->Velocity[0]; + Velocity[1] = ALSource->Velocity[1]; + Velocity[2] = ALSource->Velocity[2]; + MinDist = ALSource->RefDistance; + MaxDist = ALSource->MaxDistance; + Rolloff = ALSource->RollOffFactor; + InnerAngle = ALSource->InnerAngle * ConeScale; + OuterAngle = ALSource->OuterAngle * ConeScale; AirAbsorptionFactor = ALSource->AirAbsorptionFactor; DryGainHFAuto = ALSource->DryGainHFAuto; WetGainAuto = ALSource->WetGainAuto; @@ -461,7 +461,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } //1. Translate Listener to origin (convert to head relative) - if(ALSource->bHeadRelative == AL_FALSE) + if(ALSource->HeadRelative == AL_FALSE) { /* Translate position */ Position[0] -= ALContext->Listener.Position[0]; @@ -593,12 +593,12 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) if(Angle >= InnerAngle && Angle <= OuterAngle) { ALfloat scale = (Angle-InnerAngle) / (OuterAngle-InnerAngle); - ConeVolume = lerp(1.0f, ALSource->flOuterGain, scale); + ConeVolume = lerp(1.0f, ALSource->OuterGain, scale); ConeHF = lerp(1.0f, ALSource->OuterGainHF, scale); } else if(Angle > OuterAngle) { - ConeVolume = ALSource->flOuterGain; + ConeVolume = ALSource->OuterGain; ConeHF = ALSource->OuterGainHF; } else diff --git a/Alc/mixer.c b/Alc/mixer.c index ed2f49a5..a54a10f8 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -535,7 +535,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) BuffersPlayed = Source->BuffersPlayed; DataPosInt = Source->position; DataPosFrac = Source->position_fraction; - Looping = Source->bLooping; + Looping = Source->Looping; increment = Source->Params.Step; Resampler = Source->Resampler; NumChannels = Source->NumChannels; @@ -566,7 +566,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) BufferSize = (ALuint)mini64(DataSize64, STACK_DATA_SIZE/sizeof(ALfloat)); BufferSize /= NumChannels; - if(Source->lSourceType == AL_STATIC) + if(Source->SourceType == AL_STATIC) { const ALbuffer *ALBuffer = Source->queue->buffer; const ALubyte *Data = ALBuffer->data; @@ -770,7 +770,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) break; } - if(Looping && Source->lSourceType == AL_STATIC) + if(Looping && Source->SourceType == AL_STATIC) { DataPosInt = ((DataPosInt-LoopStart)%(LoopEnd-LoopStart)) + LoopStart; break; |