aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-02-15 17:40:26 -0800
committerChris Robinson <[email protected]>2017-02-15 17:40:26 -0800
commit909193a345469529ec98b8b01379738facee861d (patch)
treed330229b276f83906e1f40589ca16d09701782ca /OpenAL32/alSource.c
parent5a50c46c22e7e6c5f119613584d826bc7b7b4a61 (diff)
Reorganize ALvoice members
This places the Send[] array at the end of the struct, making it easier to handle dynamically.
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r--OpenAL32/alSource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 56d2b415..395bc8c2 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -3013,11 +3013,11 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state)
{
ALsizei j;
for(j = 0;j < HRTF_HISTORY_LENGTH;j++)
- voice->Chan[i].Direct.Hrtf.State.History[j] = 0.0f;
+ voice->Direct.Params[i].Hrtf.State.History[j] = 0.0f;
for(j = 0;j < HRIR_LENGTH;j++)
{
- voice->Chan[i].Direct.Hrtf.State.Values[j][0] = 0.0f;
- voice->Chan[i].Direct.Hrtf.State.Values[j][1] = 0.0f;
+ voice->Direct.Params[i].Hrtf.State.Values[j][0] = 0.0f;
+ voice->Direct.Params[i].Hrtf.State.Values[j][1] = 0.0f;
}
}