summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-19 23:00:58 -0700
committerChris Robinson <[email protected]>2012-04-19 23:00:58 -0700
commit54185196373d04b49a1e4e778b433ab906a6d5bd (patch)
tree40c3a5e426dc703e70e4bf39c4e1d96699d35cc3 /Alc/ALc.c
parentb023dbe7b87921a5b4eab0ed759e7b3dd04acf57 (diff)
Remove some more hungarian notation
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index a9fe5955..2a7aeb39 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1439,47 +1439,47 @@ static ALCdevice *VerifyDevice(ALCdevice *device)
*
* Initializes context variables
*/
-static ALvoid InitContext(ALCcontext *pContext)
+static ALvoid InitContext(ALCcontext *Context)
{
ALint i, j;
//Initialise listener
- pContext->Listener.Gain = 1.0f;
- pContext->Listener.MetersPerUnit = 1.0f;
- pContext->Listener.Position[0] = 0.0f;
- pContext->Listener.Position[1] = 0.0f;
- pContext->Listener.Position[2] = 0.0f;
- pContext->Listener.Velocity[0] = 0.0f;
- pContext->Listener.Velocity[1] = 0.0f;
- pContext->Listener.Velocity[2] = 0.0f;
- pContext->Listener.Forward[0] = 0.0f;
- pContext->Listener.Forward[1] = 0.0f;
- pContext->Listener.Forward[2] = -1.0f;
- pContext->Listener.Up[0] = 0.0f;
- pContext->Listener.Up[1] = 1.0f;
- pContext->Listener.Up[2] = 0.0f;
+ Context->Listener.Gain = 1.0f;
+ Context->Listener.MetersPerUnit = 1.0f;
+ Context->Listener.Position[0] = 0.0f;
+ Context->Listener.Position[1] = 0.0f;
+ Context->Listener.Position[2] = 0.0f;
+ Context->Listener.Velocity[0] = 0.0f;
+ Context->Listener.Velocity[1] = 0.0f;
+ Context->Listener.Velocity[2] = 0.0f;
+ Context->Listener.Forward[0] = 0.0f;
+ Context->Listener.Forward[1] = 0.0f;
+ Context->Listener.Forward[2] = -1.0f;
+ Context->Listener.Up[0] = 0.0f;
+ Context->Listener.Up[1] = 1.0f;
+ Context->Listener.Up[2] = 0.0f;
for(i = 0;i < 4;i++)
{
for(j = 0;j < 4;j++)
- pContext->Listener.Matrix[i][j] = ((i==j) ? 1.0f : 0.0f);
+ Context->Listener.Matrix[i][j] = ((i==j) ? 1.0f : 0.0f);
}
- //Validate pContext
- pContext->LastError = AL_NO_ERROR;
- pContext->UpdateSources = AL_FALSE;
- pContext->ActiveSourceCount = 0;
- InitUIntMap(&pContext->SourceMap, pContext->Device->MaxNoOfSources);
- InitUIntMap(&pContext->EffectSlotMap, pContext->Device->AuxiliaryEffectSlotMax);
+ //Validate Context
+ Context->LastError = AL_NO_ERROR;
+ Context->UpdateSources = AL_FALSE;
+ Context->ActiveSourceCount = 0;
+ InitUIntMap(&Context->SourceMap, Context->Device->MaxNoOfSources);
+ InitUIntMap(&Context->EffectSlotMap, Context->Device->AuxiliaryEffectSlotMax);
//Set globals
- pContext->DistanceModel = AL_INVERSE_DISTANCE_CLAMPED;
- pContext->SourceDistanceModel = AL_FALSE;
- pContext->DopplerFactor = 1.0f;
- pContext->DopplerVelocity = 1.0f;
- pContext->SpeedOfSound = SPEEDOFSOUNDMETRESPERSEC;
- pContext->DeferUpdates = AL_FALSE;
-
- pContext->ExtensionList = alExtList;
+ Context->DistanceModel = AL_INVERSE_DISTANCE_CLAMPED;
+ Context->SourceDistanceModel = AL_FALSE;
+ Context->DopplerFactor = 1.0f;
+ Context->DopplerVelocity = 1.0f;
+ Context->SpeedOfSound = SPEEDOFSOUNDMETRESPERSEC;
+ Context->DeferUpdates = AL_FALSE;
+
+ Context->ExtensionList = alExtList;
}