aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-27 00:45:42 -0700
committerChris Robinson <[email protected]>2012-04-27 01:36:13 -0700
commit549d542a316c1f557c8042d9fc2b409bcd999872 (patch)
tree16b02e7a55e3bd045df8ea8336e5ee5ebd371c11 /OpenAL32/alSource.c
parent2cdb58fb850f085b801c3d33b82512efd083020c (diff)
Reorganize some ALsource fields
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 5f52322f..7d0e51d6 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -686,13 +686,13 @@ AL_API void AL_APIENTRY alSource3i(ALuint source, ALenum param, ALint value1, AL
if(!filter)
{
/* Disable filter */
- Source->Send[value2].WetGain = 1.0f;
- Source->Send[value2].WetGainHF = 1.0f;
+ Source->Send[value2].Gain = 1.0f;
+ Source->Send[value2].GainHF = 1.0f;
}
else
{
- Source->Send[value2].WetGain = filter->Gain;
- Source->Send[value2].WetGainHF = filter->GainHF;
+ Source->Send[value2].Gain = filter->Gain;
+ Source->Send[value2].GainHF = filter->GainHF;
}
Source->NeedsUpdate = AL_TRUE;
UnlockContext(Context);
@@ -1633,14 +1633,14 @@ static ALvoid InitSourceParams(ALsource *Source)
Source->DirectGainHF = 1.0f;
for(i = 0;i < MAX_SENDS;i++)
{
- Source->Send[i].WetGain = 1.0f;
- Source->Send[i].WetGainHF = 1.0f;
+ Source->Send[i].Gain = 1.0f;
+ Source->Send[i].GainHF = 1.0f;
}
Source->NeedsUpdate = AL_TRUE;
- Source->HrtfMoving = AL_FALSE;
- Source->HrtfCounter = 0;
+ Source->Hrtf.Moving = AL_FALSE;
+ Source->Hrtf.Counter = 0;
}
@@ -1670,11 +1670,11 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state)
for(j = 0;j < MAXCHANNELS;j++)
{
for(k = 0;k < SRC_HISTORY_LENGTH;k++)
- Source->HrtfHistory[j][k] = 0.0f;
+ Source->Hrtf.History[j][k] = 0.0f;
for(k = 0;k < HRIR_LENGTH;k++)
{
- Source->HrtfValues[j][k][0] = 0.0f;
- Source->HrtfValues[j][k][1] = 0.0f;
+ Source->Hrtf.Values[j][k][0] = 0.0f;
+ Source->Hrtf.Values[j][k][1] = 0.0f;
}
}
}
@@ -1714,8 +1714,8 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state)
if(Source->state == AL_PLAYING)
{
Source->state = AL_PAUSED;
- Source->HrtfMoving = AL_FALSE;
- Source->HrtfCounter = 0;
+ Source->Hrtf.Moving = AL_FALSE;
+ Source->Hrtf.Counter = 0;
}
}
else if(state == AL_STOPPED)
@@ -1724,8 +1724,8 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state)
{
Source->state = AL_STOPPED;
Source->BuffersPlayed = Source->BuffersInQueue;
- Source->HrtfMoving = AL_FALSE;
- Source->HrtfCounter = 0;
+ Source->Hrtf.Moving = AL_FALSE;
+ Source->Hrtf.Counter = 0;
}
Source->Offset = -1.0;
}
@@ -1737,8 +1737,8 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state)
Source->position = 0;
Source->position_fraction = 0;
Source->BuffersPlayed = 0;
- Source->HrtfMoving = AL_FALSE;
- Source->HrtfCounter = 0;
+ Source->Hrtf.Moving = AL_FALSE;
+ Source->Hrtf.Counter = 0;
}
Source->Offset = -1.0;
}