aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-11 21:59:59 -0800
committerChris Robinson <[email protected]>2018-02-11 22:23:03 -0800
commite63e0ee596e207d225e2340c867f0c0c83496cc8 (patch)
treec8b3d47eb9e90be961d624f046577c657de3726d /OpenAL32
parent494e9fd61d1a4ca98bb314a6615e720556519a95 (diff)
Combine multiple functions called sequentially
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h2
-rw-r--r--OpenAL32/alSource.c8
2 files changed, 3 insertions, 7 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index a151c761..609118bf 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -157,7 +157,7 @@ typedef struct DirectParams {
ALfilterState LowPass;
ALfilterState HighPass;
- NfcFilter NFCtrlFilter[MAX_AMBI_ORDER];
+ NfcFilter NFCtrlFilter;
struct {
HrtfParams Old;
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 95651f29..2323da3e 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -2534,13 +2534,9 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources)
if(device->AvgSpeakerDist > 0.0f)
{
ALfloat w1 = SPEEDOFSOUNDMETRESPERSEC /
- (device->AvgSpeakerDist * device->Frequency);
+ (device->AvgSpeakerDist * device->Frequency);
for(j = 0;j < voice->NumChannels;j++)
- {
- NfcFilterCreate1(&voice->Direct.Params[j].NFCtrlFilter[0], 0.0f, w1);
- NfcFilterCreate2(&voice->Direct.Params[j].NFCtrlFilter[1], 0.0f, w1);
- NfcFilterCreate3(&voice->Direct.Params[j].NFCtrlFilter[2], 0.0f, w1);
- }
+ NfcFilterCreate(&voice->Direct.Params[j].NFCtrlFilter, 0.0f, w1);
}
ATOMIC_STORE(&voice->Source, source, almemory_order_relaxed);