diff options
author | Chris Robinson <[email protected]> | 2014-11-25 16:47:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-25 16:47:39 -0800 |
commit | aa231d25a7dc3501ab82bd6da018b337e0dcc510 (patch) | |
tree | 415f1667ef2e10912c3ac499b4a3d21ab0989fb0 /Alc | |
parent | efb5c5eecd3b2fd1744f8ce965653fed3a76cf01 (diff) |
Shorten a couple lines
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -530,7 +530,7 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A { if(Device->Hrtf) { - voice->Direct.OutBuffer = &voice->Direct.OutBuffer[voice->Direct.OutChannels]; + voice->Direct.OutBuffer += voice->Direct.OutChannels; voice->Direct.OutChannels = 2; for(c = 0;c < num_channels;c++) { @@ -562,7 +562,7 @@ ALvoid CalcNonAttnSourceParams(ALvoice *voice, const ALsource *ALSource, const A } else if(Device->Hrtf) { - voice->Direct.OutBuffer = &voice->Direct.OutBuffer[voice->Direct.OutChannels]; + voice->Direct.OutBuffer += voice->Direct.OutChannels; voice->Direct.OutChannels = 2; for(c = 0;c < num_channels;c++) { @@ -1010,7 +1010,7 @@ ALvoid CalcSourceParams(ALvoice *voice, const ALsource *ALSource, const ALCconte ALfloat radius = ALSource->Radius; ALfloat dirfact = 1.0f; - voice->Direct.OutBuffer = &voice->Direct.OutBuffer[voice->Direct.OutChannels]; + voice->Direct.OutBuffer += voice->Direct.OutChannels; voice->Direct.OutChannels = 2; if(Distance > FLT_EPSILON) |