diff options
author | Chris Robinson <[email protected]> | 2017-07-31 01:20:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-07-31 01:20:42 -0700 |
commit | 88c0d22e7c72109fb5d7b2ee3276680d36971368 (patch) | |
tree | b05a8a6ec59740df39e5500a284c2db11ed832ea /Alc/hrtf.c | |
parent | e5431bbef7741155382920ed10e14dc3263e98cd (diff) |
Don't bother returning the IR length for B-Format decoding
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r-- | Alc/hrtf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -181,7 +181,7 @@ void GetHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, } -ALsizei BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsizei NumChannels, const ALfloat (*restrict AmbiPoints)[2], const ALfloat (*restrict AmbiMatrix)[2][MAX_AMBI_COEFFS], ALsizei AmbiCount) +void BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsizei NumChannels, const ALfloat (*restrict AmbiPoints)[2], const ALfloat (*restrict AmbiMatrix)[2][MAX_AMBI_COEFFS], ALsizei AmbiCount) { /* Set this to 2 for dual-band HRTF processing. May require a higher quality * band-splitter, or better calculation of the new IR length to deal with the @@ -288,7 +288,7 @@ ALsizei BuildBFormatHrtf(const struct Hrtf *Hrtf, DirectHrtfState *state, ALsize max_length = RoundUp(max_length, MOD_IR_SIZE); TRACE("Skipped min delay: %d, new combined length: %d\n", min_delay, max_length); - return max_length; + state->IrSize = max_length; #undef NUM_BANDS } |