From 851a917b0347c3b47c9533f54c0a7ee1be3ffe45 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 11 May 2014 01:36:18 -0700 Subject: Use a struct to store the source's direct gain/gainhf properties --- OpenAL32/alSource.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'OpenAL32/alSource.c') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 456ab7ca..8d7ab5e6 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -661,13 +661,13 @@ static ALboolean SetSourceiv(ALsource *Source, ALCcontext *Context, SrcIntProp p LockContext(Context); if(!filter) { - Source->DirectGain = 1.0f; - Source->DirectGainHF = 1.0f; + Source->Direct.Gain = 1.0f; + Source->Direct.GainHF = 1.0f; } else { - Source->DirectGain = filter->Gain; - Source->DirectGainHF = filter->GainHF; + Source->Direct.Gain = filter->Gain; + Source->Direct.GainHF = filter->GainHF; } UnlockContext(Context); Source->NeedsUpdate = AL_TRUE; @@ -2301,8 +2301,8 @@ static ALvoid InitSourceParams(ALsource *Source) Source->queue = NULL; Source->current_buffer = NULL; - Source->DirectGain = 1.0f; - Source->DirectGainHF = 1.0f; + Source->Direct.Gain = 1.0f; + Source->Direct.GainHF = 1.0f; for(i = 0;i < MAX_SENDS;i++) { Source->Send[i].Gain = 1.0f; -- cgit v1.2.3