SAF
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ambi_bin_codecPars Struct Reference

Contains variables for sofa file loading, HRIRs, and the binaural decoder. More...

#include <ambi_bin_internal.h>

Data Fields

float_complex M_dec [HYBRID_BANDS][NUM_EARS][MAX_NUM_SH_SIGNALS]
 Decoding matrix per band.
 
float_complex M_dec_rot [HYBRID_BANDS][NUM_EARS][MAX_NUM_SH_SIGNALS]
 Decording matrix per band, with sound-field rotation baked-in.
 
char * sofa_filepath
 absolute/relevative file path for a sofa file
 
float * hrirs
 time domain HRIRs; FLAT: N_hrir_dirs x 2 x hrir_len
 
float * hrir_dirs_deg
 directions of the HRIRs in degrees [azi elev]; FLAT: N_hrir_dirs x 2
 
int N_hrir_dirs
 number of HRIR directions in the current sofa file
 
int hrir_len
 length of the HRIRs, this can be truncated, see "saf_sofa_reader.h"
 
int hrir_fs
 sampling rate of the HRIRs, should ideally match the host sampling rate, although not required
 
float * itds_s
 interaural-time differences for each HRIR (in seconds); N_hrirs x 1
 
float_complex * hrtf_fb
 HRTF filterbank coeffs; FLAT: nBands x nCH x N_hrirs.
 
float * weights
 grid integration weights of hrirs; N_hrirs x 1
 

Detailed Description

Contains variables for sofa file loading, HRIRs, and the binaural decoder.

Definition at line 86 of file ambi_bin_internal.h.

Field Documentation

◆ hrir_dirs_deg

float* ambi_bin_codecPars::hrir_dirs_deg

directions of the HRIRs in degrees [azi elev]; FLAT: N_hrir_dirs x 2

Definition at line 95 of file ambi_bin_internal.h.

◆ hrir_fs

int ambi_bin_codecPars::hrir_fs

sampling rate of the HRIRs, should ideally match the host sampling rate, although not required

Definition at line 98 of file ambi_bin_internal.h.

◆ hrir_len

int ambi_bin_codecPars::hrir_len

length of the HRIRs, this can be truncated, see "saf_sofa_reader.h"

Definition at line 97 of file ambi_bin_internal.h.

◆ hrirs

float* ambi_bin_codecPars::hrirs

time domain HRIRs; FLAT: N_hrir_dirs x 2 x hrir_len

Definition at line 94 of file ambi_bin_internal.h.

◆ hrtf_fb

float_complex* ambi_bin_codecPars::hrtf_fb

HRTF filterbank coeffs; FLAT: nBands x nCH x N_hrirs.

Definition at line 102 of file ambi_bin_internal.h.

◆ itds_s

float* ambi_bin_codecPars::itds_s

interaural-time differences for each HRIR (in seconds); N_hrirs x 1

Definition at line 101 of file ambi_bin_internal.h.

◆ M_dec

float_complex ambi_bin_codecPars::M_dec[HYBRID_BANDS][NUM_EARS][MAX_NUM_SH_SIGNALS]

Decoding matrix per band.

Definition at line 89 of file ambi_bin_internal.h.

◆ M_dec_rot

float_complex ambi_bin_codecPars::M_dec_rot[HYBRID_BANDS][NUM_EARS][MAX_NUM_SH_SIGNALS]

Decording matrix per band, with sound-field rotation baked-in.

Definition at line 90 of file ambi_bin_internal.h.

◆ N_hrir_dirs

int ambi_bin_codecPars::N_hrir_dirs

number of HRIR directions in the current sofa file

Definition at line 96 of file ambi_bin_internal.h.

◆ sofa_filepath

char* ambi_bin_codecPars::sofa_filepath

absolute/relevative file path for a sofa file

Definition at line 93 of file ambi_bin_internal.h.

◆ weights

float* ambi_bin_codecPars::weights

grid integration weights of hrirs; N_hrirs x 1

Definition at line 105 of file ambi_bin_internal.h.


The documentation for this struct was generated from the following file: