SAF
Loading...
Searching...
No Matches
binauraliser_data Struct Reference

Main structure for binauraliser. More...

#include <binauraliser_internal.h>

Data Fields

float ** inputFrameTD
 time-domain input frame; MAX_NUM_INPUTS x BINAURALISER_FRAME_SIZE
 
float ** outframeTD
 time-domain output frame; NUM_EARS x BINAURALISER_FRAME_SIZE
 
float_complex *** inputframeTF
 time-frequency domain input frame; HYBRID_BANDS x MAX_NUM_INPUTS x TIME_SLOTS
 
float_complex *** outputframeTF
 time-frequency domain input frame; HYBRID_BANDS x NUM_EARS x TIME_SLOTS
 
_Atomic_FLOAT32 fs
 Host sampling rate, in Hz.
 
float freqVector [HYBRID_BANDS]
 Frequency vector (filterbank centre frequencies)
 
void * hSTFT
 afSTFT handle
 
char * sofa_filepath
 absolute/relevative file path for a sofa file
 
float * hrirs
 time domain HRIRs; FLAT: N_hrir_dirs x NUM_EARS x hrir_len
 
float * hrir_dirs_deg
 directions of the HRIRs in degrees [azi elev]; FLAT: N_hrir_dirs x 2
 
_Atomic_INT32 N_hrir_dirs
 number of HRIR directions in the current sofa file
 
_Atomic_INT32 hrir_loaded_len
 length of the loaded HRIRs, in samples
 
_Atomic_INT32 hrir_runtime_len
 length of the HRIRs being used for processing (after any resampling), in samples
 
_Atomic_INT32 hrir_loaded_fs
 sampling rate of the loaded HRIRs
 
_Atomic_INT32 hrir_runtime_fs
 sampling rate of the HRIRs being used for processing (after any resampling)
 
float * weights
 Integration weights for the HRIR measurement grid; N_hrir_dirs x 1.
 
int hrtf_vbapTableRes [2]
 [0] azimuth, and [1] elevation grid resolution, in degrees
 
int N_hrtf_vbap_gtable
 Number of interpolation weights/directions.
 
int * hrtf_vbap_gtableIdx
 N_hrtf_vbap_gtable x 3.
 
float * hrtf_vbap_gtableComp
 N_hrtf_vbap_gtable x 3.
 
float * itds_s
 interaural-time differences for each HRIR (in seconds); nBands x 1
 
float_complex * hrtf_fb
 hrtf filterbank coefficients; nBands x nCH x N_hrirs
 
float * hrtf_fb_mag
 magnitudes of the hrtf filterbank coefficients; nBands x nCH x N_hrirs
 
float_complex hrtf_interp [MAX_NUM_INPUTS][HYBRID_BANDS][NUM_EARS]
 Interpolated HRTFs.
 
_Atomic_CODEC_STATUS codecStatus
 see CODEC_STATUS
 
_Atomic_FLOAT32 progressBar0_1
 Current (re)initialisation progress, between [0..1].
 
char * progressBarText
 Current (re)initialisation step, string.
 
_Atomic_PROC_STATUS procStatus
 see PROC_STATUS
 
_Atomic_INT32 recalc_hrtf_interpFLAG [MAX_NUM_INPUTS]
 1: re-calculate/interpolate the HRTF, 0: do not
 
_Atomic_INT32 reInitHRTFsAndGainTables
 1: reinitialise the HRTFs and interpolation tables, 0: do not
 
_Atomic_INT32 recalc_M_rotFLAG
 1: re-calculate the rotation matrix, 0: do not
 
float src_dirs_rot_deg [MAX_NUM_INPUTS][2]
 Intermediate rotated source directions, in degrees.
 
float src_dirs_rot_xyz [MAX_NUM_INPUTS][3]
 Intermediate rotated source directions, as unit-length Cartesian coordinates.
 
float src_dirs_xyz [MAX_NUM_INPUTS][3]
 Intermediate source directions, as unit-length Cartesian coordinates.
 
int nTriangles
 Number of triangles in the convex hull of the spherical arrangement of HRIR directions/points.
 
_Atomic_INT32 new_nSources
 New number of input/source signals (current value will be replaced by this after next re-init)
 
_Atomic_INT32 nSources
 Current number of input/source signals.
 
_Atomic_FLOAT32 src_dirs_deg [MAX_NUM_INPUTS][2]
 Current source/panning directions, in degrees.
 
_Atomic_INTERP_MODES interpMode
 see INTERP_MODES
 
_Atomic_INT32 useDefaultHRIRsFLAG
 1: use default HRIRs in database, 0: use those from SOFA file
 
_Atomic_INT32 enableHRIRsDiffuseEQ
 flag to diffuse-field equalisation to the currently loaded HRTFs
 
_Atomic_INT32 enableRotation
 1: enable rotation, 0: disable
 
_Atomic_FLOAT32 yaw
 yaw (Euler) rotation angle, in degrees
 
_Atomic_FLOAT32 roll
 roll (Euler) rotation angle, in degrees
 
_Atomic_FLOAT32 pitch
 pitch (Euler) rotation angle, in degrees
 
_Atomic_INT32 bFlipYaw
 flag to flip the sign of the yaw rotation angle
 
_Atomic_INT32 bFlipPitch
 flag to flip the sign of the pitch rotation angle
 
_Atomic_INT32 bFlipRoll
 flag to flip the sign of the roll rotation angle
 
_Atomic_INT32 useRollPitchYawFlag
 rotation order flag, 1: r-p-y, 0: y-p-r
 
_Atomic_FLOAT32 src_gains [MAX_NUM_INPUTS]
 Gains applied per source.
 

Detailed Description

Main structure for binauraliser.

Contains variables for audio buffers, afSTFT, HRTFs, internal variables, flags, user parameters. Note: if this is modified, identically modify _binauraliserNF struct.

Definition at line 79 of file binauraliser_internal.h.

Field Documentation

◆ bFlipPitch

_Atomic_INT32 binauraliser_data::bFlipPitch

flag to flip the sign of the pitch rotation angle

Definition at line 140 of file binauraliser_internal.h.

◆ bFlipRoll

_Atomic_INT32 binauraliser_data::bFlipRoll

flag to flip the sign of the roll rotation angle

Definition at line 141 of file binauraliser_internal.h.

◆ bFlipYaw

_Atomic_INT32 binauraliser_data::bFlipYaw

flag to flip the sign of the yaw rotation angle

Definition at line 139 of file binauraliser_internal.h.

◆ codecStatus

_Atomic_CODEC_STATUS binauraliser_data::codecStatus

see CODEC_STATUS

Definition at line 114 of file binauraliser_internal.h.

◆ enableHRIRsDiffuseEQ

_Atomic_INT32 binauraliser_data::enableHRIRsDiffuseEQ

flag to diffuse-field equalisation to the currently loaded HRTFs

Definition at line 134 of file binauraliser_internal.h.

◆ enableRotation

_Atomic_INT32 binauraliser_data::enableRotation

1: enable rotation, 0: disable

Definition at line 135 of file binauraliser_internal.h.

◆ freqVector

float binauraliser_data::freqVector[HYBRID_BANDS]

Frequency vector (filterbank centre frequencies)

Definition at line 87 of file binauraliser_internal.h.

◆ fs

_Atomic_FLOAT32 binauraliser_data::fs

Host sampling rate, in Hz.

Definition at line 86 of file binauraliser_internal.h.

◆ hrir_dirs_deg

float* binauraliser_data::hrir_dirs_deg

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

Definition at line 93 of file binauraliser_internal.h.

◆ hrir_loaded_fs

_Atomic_INT32 binauraliser_data::hrir_loaded_fs

sampling rate of the loaded HRIRs

Definition at line 97 of file binauraliser_internal.h.

◆ hrir_loaded_len

_Atomic_INT32 binauraliser_data::hrir_loaded_len

length of the loaded HRIRs, in samples

Definition at line 95 of file binauraliser_internal.h.

◆ hrir_runtime_fs

_Atomic_INT32 binauraliser_data::hrir_runtime_fs

sampling rate of the HRIRs being used for processing (after any resampling)

Definition at line 98 of file binauraliser_internal.h.

◆ hrir_runtime_len

_Atomic_INT32 binauraliser_data::hrir_runtime_len

length of the HRIRs being used for processing (after any resampling), in samples

Definition at line 96 of file binauraliser_internal.h.

◆ hrirs

float* binauraliser_data::hrirs

time domain HRIRs; FLAT: N_hrir_dirs x NUM_EARS x hrir_len

Definition at line 92 of file binauraliser_internal.h.

◆ hrtf_fb

float_complex* binauraliser_data::hrtf_fb

hrtf filterbank coefficients; nBands x nCH x N_hrirs

Definition at line 109 of file binauraliser_internal.h.

◆ hrtf_fb_mag

float* binauraliser_data::hrtf_fb_mag

magnitudes of the hrtf filterbank coefficients; nBands x nCH x N_hrirs

Definition at line 110 of file binauraliser_internal.h.

◆ hrtf_interp

float_complex binauraliser_data::hrtf_interp[MAX_NUM_INPUTS][HYBRID_BANDS][NUM_EARS]

Interpolated HRTFs.

Definition at line 111 of file binauraliser_internal.h.

◆ hrtf_vbap_gtableComp

float* binauraliser_data::hrtf_vbap_gtableComp

N_hrtf_vbap_gtable x 3.

Definition at line 105 of file binauraliser_internal.h.

◆ hrtf_vbap_gtableIdx

int* binauraliser_data::hrtf_vbap_gtableIdx

N_hrtf_vbap_gtable x 3.

Definition at line 104 of file binauraliser_internal.h.

◆ hrtf_vbapTableRes

int binauraliser_data::hrtf_vbapTableRes[2]

[0] azimuth, and [1] elevation grid resolution, in degrees

Definition at line 102 of file binauraliser_internal.h.

◆ hSTFT

void* binauraliser_data::hSTFT

afSTFT handle

Definition at line 88 of file binauraliser_internal.h.

◆ inputFrameTD

float** binauraliser_data::inputFrameTD

time-domain input frame; MAX_NUM_INPUTS x BINAURALISER_FRAME_SIZE

Definition at line 82 of file binauraliser_internal.h.

◆ inputframeTF

float_complex*** binauraliser_data::inputframeTF

time-frequency domain input frame; HYBRID_BANDS x MAX_NUM_INPUTS x TIME_SLOTS

Definition at line 84 of file binauraliser_internal.h.

◆ interpMode

_Atomic_INTERP_MODES binauraliser_data::interpMode

see INTERP_MODES

Definition at line 132 of file binauraliser_internal.h.

◆ itds_s

float* binauraliser_data::itds_s

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

Definition at line 108 of file binauraliser_internal.h.

◆ N_hrir_dirs

_Atomic_INT32 binauraliser_data::N_hrir_dirs

number of HRIR directions in the current sofa file

Definition at line 94 of file binauraliser_internal.h.

◆ N_hrtf_vbap_gtable

int binauraliser_data::N_hrtf_vbap_gtable

Number of interpolation weights/directions.

Definition at line 103 of file binauraliser_internal.h.

◆ new_nSources

_Atomic_INT32 binauraliser_data::new_nSources

New number of input/source signals (current value will be replaced by this after next re-init)

Definition at line 127 of file binauraliser_internal.h.

◆ nSources

_Atomic_INT32 binauraliser_data::nSources

Current number of input/source signals.

Definition at line 130 of file binauraliser_internal.h.

◆ nTriangles

int binauraliser_data::nTriangles

Number of triangles in the convex hull of the spherical arrangement of HRIR directions/points.

Definition at line 126 of file binauraliser_internal.h.

◆ outframeTD

float** binauraliser_data::outframeTD

time-domain output frame; NUM_EARS x BINAURALISER_FRAME_SIZE

Definition at line 83 of file binauraliser_internal.h.

◆ outputframeTF

float_complex*** binauraliser_data::outputframeTF

time-frequency domain input frame; HYBRID_BANDS x NUM_EARS x TIME_SLOTS

Definition at line 85 of file binauraliser_internal.h.

◆ pitch

_Atomic_FLOAT32 binauraliser_data::pitch

pitch (Euler) rotation angle, in degrees

Definition at line 138 of file binauraliser_internal.h.

◆ procStatus

_Atomic_PROC_STATUS binauraliser_data::procStatus

see PROC_STATUS

Definition at line 117 of file binauraliser_internal.h.

◆ progressBar0_1

_Atomic_FLOAT32 binauraliser_data::progressBar0_1

Current (re)initialisation progress, between [0..1].

Definition at line 115 of file binauraliser_internal.h.

◆ progressBarText

char* binauraliser_data::progressBarText

Current (re)initialisation step, string.

Definition at line 116 of file binauraliser_internal.h.

◆ recalc_hrtf_interpFLAG

_Atomic_INT32 binauraliser_data::recalc_hrtf_interpFLAG[MAX_NUM_INPUTS]

1: re-calculate/interpolate the HRTF, 0: do not

Definition at line 118 of file binauraliser_internal.h.

◆ recalc_M_rotFLAG

_Atomic_INT32 binauraliser_data::recalc_M_rotFLAG

1: re-calculate the rotation matrix, 0: do not

Definition at line 120 of file binauraliser_internal.h.

◆ reInitHRTFsAndGainTables

_Atomic_INT32 binauraliser_data::reInitHRTFsAndGainTables

1: reinitialise the HRTFs and interpolation tables, 0: do not

Definition at line 119 of file binauraliser_internal.h.

◆ roll

_Atomic_FLOAT32 binauraliser_data::roll

roll (Euler) rotation angle, in degrees

Definition at line 137 of file binauraliser_internal.h.

◆ sofa_filepath

char* binauraliser_data::sofa_filepath

absolute/relevative file path for a sofa file

Definition at line 91 of file binauraliser_internal.h.

◆ src_dirs_deg

_Atomic_FLOAT32 binauraliser_data::src_dirs_deg[MAX_NUM_INPUTS][2]

Current source/panning directions, in degrees.

Definition at line 131 of file binauraliser_internal.h.

◆ src_dirs_rot_deg

float binauraliser_data::src_dirs_rot_deg[MAX_NUM_INPUTS][2]

Intermediate rotated source directions, in degrees.

Definition at line 123 of file binauraliser_internal.h.

◆ src_dirs_rot_xyz

float binauraliser_data::src_dirs_rot_xyz[MAX_NUM_INPUTS][3]

Intermediate rotated source directions, as unit-length Cartesian coordinates.

Definition at line 124 of file binauraliser_internal.h.

◆ src_dirs_xyz

float binauraliser_data::src_dirs_xyz[MAX_NUM_INPUTS][3]

Intermediate source directions, as unit-length Cartesian coordinates.

Definition at line 125 of file binauraliser_internal.h.

◆ src_gains

_Atomic_FLOAT32 binauraliser_data::src_gains[MAX_NUM_INPUTS]

Gains applied per source.

Definition at line 143 of file binauraliser_internal.h.

◆ useDefaultHRIRsFLAG

_Atomic_INT32 binauraliser_data::useDefaultHRIRsFLAG

1: use default HRIRs in database, 0: use those from SOFA file

Definition at line 133 of file binauraliser_internal.h.

◆ useRollPitchYawFlag

_Atomic_INT32 binauraliser_data::useRollPitchYawFlag

rotation order flag, 1: r-p-y, 0: y-p-r

Definition at line 142 of file binauraliser_internal.h.

◆ weights

float* binauraliser_data::weights

Integration weights for the HRIR measurement grid; N_hrir_dirs x 1.

Definition at line 99 of file binauraliser_internal.h.

◆ yaw

_Atomic_FLOAT32 binauraliser_data::yaw

yaw (Euler) rotation angle, in degrees

Definition at line 136 of file binauraliser_internal.h.


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