SAF
|
A basic Ambisonic encoder. More...
Go to the source code of this file.
Data Structures | |
struct | ambi_enc_data |
Main structure for ambi_enc. More... | |
Macros | |
#define | AMBI_ENC_FRAME_SIZE ( 64 ) |
Framesize, in time-domain samples. | |
Functions | |
void | loadSourceConfigPreset (SOURCE_CONFIG_PRESETS preset, float dirs_deg[MAX_NUM_INPUTS][2], int *nCH) |
Returns the source directions for a specified source config preset. | |
#define AMBI_ENC_FRAME_SIZE ( 64 ) |
Framesize, in time-domain samples.
Definition at line 45 of file ambi_enc_internal.h.
void loadSourceConfigPreset | ( | SOURCE_CONFIG_PRESETS | preset, |
float | dirs_deg[MAX_NUM_INPUTS][2], | ||
int * | nCH ) |
Returns the source directions for a specified source config preset.
The function also returns the number of source in the configuration Note: default uniformly distributed points are used to pad the dirs_deg matrix up to the MAX_NUM_INPUTS, if nCH is less than this. This can help avoid scenarios of many sources being panned in the same direction, or triangulations errors.
[in] | preset | See SOURCE_CONFIG_PRESETS enum |
[out] | dirs_deg | Source directions, [azimuth elevation] convention, in DEGREES; |
[out] | nCH | (&) number of source directions in the configuration |
Definition at line 29 of file ambi_enc_internal.c.