SAF
Loading...
Searching...
No Matches
binauraliser_nf_internal.c File Reference

Convolves input audio (up to 64 channels) with interpolated HRTFs in the time-frequency domain, and applies optional near-field binaural filtering, as described in [1]. More...

Go to the source code of this file.

Functions

void binauraliserNF_initTFT (void *const hBin)
 Initialise the filterbank used by binauraliserNF.
 
void binauraliserNF_resetSourceDistances (void *const hBin)
 Resets the source distances to the default far field distance.
 

Detailed Description

Convolves input audio (up to 64 channels) with interpolated HRTFs in the time-frequency domain, and applies optional near-field binaural filtering, as described in [1].

The HRTFs are interpolated by applying amplitude-preserving VBAP gains to the HRTF magnitude responses and inter-aural time differences (ITDs) individually, before being re-combined. The example also allows the user to specify an external SOFA file for the convolution, and rotations of the source directions to accomodate head-tracking.

See also
[1] S. Spagnol, E. Tavazzi, and F. Avanzini, “Distance rendering and perception of nearby virtual sound sources with a near-field filter model,” Applied Acoustics, vol. 115, pp. 61–73, Jan. 2017, doi: 10.1016/j.apacoust.2016.08.015.
Author
Michael McCrea, Leo McCormack
Date
22.02.2022
License
ISC

Definition in file binauraliser_nf_internal.c.

Function Documentation

◆ binauraliserNF_initTFT()

void binauraliserNF_initTFT ( void *const hBin)

Initialise the filterbank used by binauraliserNF.

Note
Call this function before binauraliser_initHRTFsAndGainTables()

Definition at line 41 of file binauraliser_nf_internal.c.

◆ binauraliserNF_resetSourceDistances()

void binauraliserNF_resetSourceDistances ( void *const hBin)

Resets the source distances to the default far field distance.

Definition at line 57 of file binauraliser_nf_internal.c.