Reverb: use precomputed HRTF average L/R energies and inter-aural coherence from ROM and/or binary HRTF file in all renderers
Summary
Average HRTF energies and inter-aural coherence are used to compute reverb coloration. Currently, the implementation is not complete. This ticket is depending on tickets #744 and #638 (closed).
Analysis
Resolution to ticket #744 (closed) will result in average energies and inter-aural coherence data stored in binary HRTF file both in FFT and in CLDFB grids. It is expected that the load_energy_iac_binary() function will read the structures containing average HRTF energies for left and right ear plus inter-aural coherence. All these data will be provided per frequency band. It is assumed the frequency bands will be those of FFT (257).
Resolution to ticket #744 (closed) will not provide handling of these data, which is the subject of this ticket.
Proposed approach
This ticket can be processed in the following steps:
-
Create structures for the relevant energy and IAC data for both FFT and CLDFB grids, -
Convert FFT grid data to CLDFB grid data, -
Share reference to these structures in HRTF data sets for different renderers, -
Read the appropriate energy and IAC data while initializing reverb instances, -
Remove unnecessary functions for computing energy and IAC data from the implementation.