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

A basic Ambisonic encoder. More...

#include "ambi_enc.h"
#include "ambi_enc_internal.h"

Go to the source code of this file.

Functions

void loadSourceConfigPreset (SOURCE_CONFIG_PRESETS preset, _Atomic_FLOAT32 dirs_deg[MAX_NUM_INPUTS][2], _Atomic_INT32 *newNCH)
 Returns the source directions for a specified source config preset.
 

Variables

const int ambi_enc_defaultNumSources = 1
 Default number of Sources.
 
const float ambi_enc_defaultSourceDirections [MAX_NUM_INPUTS][2]
 Default Loudspeaker directions.
 

Detailed Description

A basic Ambisonic encoder.

Author
Leo McCormack
Date
07.10.2016
License
ISC

Definition in file ambi_enc_internal.c.

Function Documentation

◆ loadSourceConfigPreset()

void loadSourceConfigPreset ( SOURCE_CONFIG_PRESETS preset,
_Atomic_FLOAT32 dirs_deg[MAX_NUM_INPUTS][2],
_Atomic_INT32 * 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.

Parameters
[in]presetSee SOURCE_CONFIG_PRESETS enum
[out]dirs_degSource directions, [azimuth elevation] convention, in DEGREES;
[out]nCH(&) number of source directions in the configuration

Definition at line 162 of file ambi_enc_internal.c.

Variable Documentation

◆ ambi_enc_defaultNumSources

const int ambi_enc_defaultNumSources = 1

Default number of Sources.

Definition at line 29 of file ambi_enc_internal.c.

◆ ambi_enc_defaultSourceDirections

const float ambi_enc_defaultSourceDirections[MAX_NUM_INPUTS][2]

Default Loudspeaker directions.

Definition at line 32 of file ambi_enc_internal.c.