diff options
author | Chris Robinson <[email protected]> | 2014-10-31 16:55:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-10-31 16:55:19 -0700 |
commit | 1c0596c233525e9a582269faa4ccb017e5938a28 (patch) | |
tree | ce4b5a14555d20c5f7c233adf25971e008643c84 /Alc/mixer_neon.c | |
parent | 0e09e779f9268a177a5595572971e5497a3e412a (diff) |
Check the absolute gain value for silence
Future B-Format support will be using negative gains, which still need to be
applied.
Diffstat (limited to 'Alc/mixer_neon.c')
-rw-r--r-- | Alc/mixer_neon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c index 8a27ddbf..8ce17644 100644 --- a/Alc/mixer_neon.c +++ b/Alc/mixer_neon.c @@ -102,7 +102,7 @@ void Mix_Neon(const ALfloat *data, ALuint OutChans, ALfloat (*restrict OutBuffer OutBuffer[c][OutPos+pos] += data[pos]*gain; } - if(!(gain > GAIN_SILENCE_THRESHOLD)) + if(!(fabsf(gain) > GAIN_SILENCE_THRESHOLD)) continue; gain4 = vdupq_n_f32(gain); for(;BufferSize-pos > 3;pos += 4) |