SAF
|
Internal source for the HADES module (SAF_HADES_MODULE) More...
#include "saf_hades_internal.h"
Go to the source code of this file.
Data Structures | |
struct | hades_sdMUSIC_data |
Internal data structure for sdMUSIC. More... | |
Functions | |
void | hades_getInterpolatedHRTFs (hades_analysis_handle const hAna, HADES_HRTF_INTERP_OPTIONS interpOption, hades_binaural_config *binConfig, float *target_dirs_deg, int nTargetDirs, float_complex *hrtf_interp) |
Binaural filter interpolator. | |
void | hades_sdMUSIC_create (void **const phMUSIC, int nMics, float *grid_dirs_deg, int nDirs) |
Creates an instance of the space-domain MUSIC implementation. | |
void | hades_sdMUSIC_destroy (void **const phMUSIC) |
Destroys an instance of the spherical harmonic domain MUSIC implementation, which may be used for computing pseudo-spectrums for visualisation/DoA estimation purposes. | |
void | hades_sdMUSIC_compute (void *const hMUSIC, float_complex *A_grid, float_complex *Vn, int nSrcs, float *P_music, int *peak_inds) |
Computes a pseudo-spectrum based on the MUSIC algorithm optionally returning the grid indices corresponding to the N highest peaks (N=nSrcs) | |
float | hades_comedie (float *lambda, int N) |
Returns an estimate of the diffuseness, based on [1]. | |
Internal source for the HADES module (SAF_HADES_MODULE)
The framework for binaural rendering of Hearing-Assistive/Augmented-reality Devices (HADES) is described further in [1].
Definition in file saf_hades_internal.c.
float hades_comedie | ( | float * | lambda, |
int | N ) |
Returns an estimate of the diffuseness, based on [1].
[in] | lambda | Eigenvalues; N x 1 |
[in] | N | Number of eigenvalues |
Definition at line 242 of file saf_hades_internal.c.
void hades_getInterpolatedHRTFs | ( | hades_analysis_handle const | hAna, |
HADES_HRTF_INTERP_OPTIONS | interpOption, | ||
hades_binaural_config * | binConfig, | ||
float * | target_dirs_deg, | ||
int | nTargetDirs, | ||
float_complex * | hrtf_interp ) |
Binaural filter interpolator.
[in] | hAna | hades analysis handle |
[in] | interpOption | see HADES_HRTF_INTERP_OPTIONS |
[in] | binConfig | Binaural configuration |
[in] | target_dirs_deg | Target/interpolation dirs, in degrees; FLAT: nTargetDirs x 2 |
[in] | nTargetDirs | Number of target/interpolation directions |
[out] | hrtf_interp | The interpolated HRTFs; nBands x NUM_EARS x nTargetDirs |
Definition at line 42 of file saf_hades_internal.c.
void hades_sdMUSIC_compute | ( | void *const | hMUSIC, |
float_complex * | A_grid, | ||
float_complex * | Vn, | ||
int | nSrcs, | ||
float * | P_music, | ||
int * | peak_inds ) |
Computes a pseudo-spectrum based on the MUSIC algorithm optionally returning the grid indices corresponding to the N highest peaks (N=nSrcs)
[in] | hMUSIC | sdMUSIC handle |
[in] | A_grid | Scanning steering vectors; nMics x nGrid |
[in] | Vn | Noise subspace; FLAT: nSH x (nSH - nSrcs) |
[in] | nSrcs | Number of sources |
[in] | P_music | Pseudo-spectrum (set to NULL if not wanted); nDirs x 1 |
[in] | peak_inds | Indices corresponding to the "nSrcs" highest peaks in the pseudo-spectrum (set to NULL if not wanted); nSrcs x 1 |
Definition at line 177 of file saf_hades_internal.c.
void hades_sdMUSIC_create | ( | void **const | phMUSIC, |
int | nMics, | ||
float * | grid_dirs_deg, | ||
int | nDirs ) |
Creates an instance of the space-domain MUSIC implementation.
[in] | phMUSIC | (&) address of the sdMUSIC handle |
[in] | nMics | Number of microphones in the array |
[in] | grid_dirs_deg | Scanning grid directions; FLAT: nDirs x 2 |
[in] | nDirs | Number of scanning directions |
Definition at line 129 of file saf_hades_internal.c.
void hades_sdMUSIC_destroy | ( | void **const | phMUSIC | ) |
Destroys an instance of the spherical harmonic domain MUSIC implementation, which may be used for computing pseudo-spectrums for visualisation/DoA estimation purposes.
[in] | phMUSIC | (&) address of the sdMUSIC handle |
Definition at line 156 of file saf_hades_internal.c.