diff options
author | Chris Robinson <[email protected]> | 2012-04-19 22:50:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-19 22:50:11 -0700 |
commit | b023dbe7b87921a5b4eab0ed759e7b3dd04acf57 (patch) | |
tree | 1a222fbd4e317cfdd5811b6b2257b2c02abab39b /OpenAL32 | |
parent | 8092cd92058f3fa1ad42f8c46049c0bc39ae82ab (diff) |
Remove hungarian notation from the device and context structs
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 6 | ||||
-rw-r--r-- | OpenAL32/alState.c | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 15747913..ca8d6340 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -539,7 +539,7 @@ struct ALCdevice_struct enum DevFmtChannels FmtChans; enum DevFmtType FmtType; - ALCchar *szDeviceName; + ALCchar *DeviceName; volatile ALCenum LastError; @@ -631,7 +631,7 @@ struct ALCcontext_struct { volatile RefCount ref; - ALlistener Listener; + ALlistener Listener; UIntMap SourceMap; UIntMap EffectSlotMap; @@ -645,7 +645,7 @@ struct ALCcontext_struct volatile ALfloat DopplerFactor; volatile ALfloat DopplerVelocity; - volatile ALfloat flSpeedOfSound; + volatile ALfloat SpeedOfSound; volatile ALenum DeferUpdates; struct ALsource **ActiveSources; diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index d7393767..4ef8a91f 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -135,7 +135,7 @@ AL_API ALboolean AL_APIENTRY alGetBoolean(ALenum pname) break; case AL_SPEED_OF_SOUND: - if(Context->flSpeedOfSound != 0.0f) + if(Context->SpeedOfSound != 0.0f) value = AL_TRUE; break; @@ -176,7 +176,7 @@ AL_API ALdouble AL_APIENTRY alGetDouble(ALenum pname) break; case AL_SPEED_OF_SOUND: - value = (double)Context->flSpeedOfSound; + value = (double)Context->SpeedOfSound; break; case AL_DEFERRED_UPDATES_SOFT: @@ -216,7 +216,7 @@ AL_API ALfloat AL_APIENTRY alGetFloat(ALenum pname) break; case AL_SPEED_OF_SOUND: - value = Context->flSpeedOfSound; + value = Context->SpeedOfSound; break; case AL_DEFERRED_UPDATES_SOFT: @@ -256,7 +256,7 @@ AL_API ALint AL_APIENTRY alGetInteger(ALenum pname) break; case AL_SPEED_OF_SOUND: - value = (ALint)Context->flSpeedOfSound; + value = (ALint)Context->SpeedOfSound; break; case AL_DEFERRED_UPDATES_SOFT: @@ -526,16 +526,16 @@ AL_API ALvoid AL_APIENTRY alDopplerVelocity(ALfloat value) ALCcontext_DecRef(Context); } -AL_API ALvoid AL_APIENTRY alSpeedOfSound(ALfloat flSpeedOfSound) +AL_API ALvoid AL_APIENTRY alSpeedOfSound(ALfloat value) { ALCcontext *Context; Context = GetContextRef(); if(!Context) return; - if(flSpeedOfSound > 0.0f && isfinite(flSpeedOfSound)) + if(value > 0.0f && isfinite(value)) { - Context->flSpeedOfSound = flSpeedOfSound; + Context->SpeedOfSound = value; Context->UpdateSources = AL_TRUE; } else |