26#ifndef __AMBI_ENC_INTERNAL_H_INCLUDED__
27#define __AMBI_ENC_INTERNAL_H_INCLUDED__
41#if !defined(AMBI_ENC_FRAME_SIZE)
42# if defined(FRAME_SIZE)
43# define AMBI_ENC_FRAME_SIZE ( FRAME_SIZE )
45# define AMBI_ENC_FRAME_SIZE ( 64 )
57typedef struct _ambi_enc
#define MAX_NUM_INPUTS
Maximum number of input channels supported.
SOURCE_CONFIG_PRESETS
Available source configurations presets to use for encoding/panning.
NORM_TYPES
Available Ambisonic normalisation conventions.
CH_ORDER
Available Ambisonic channel ordering conventions.
#define MAX_NUM_SH_SIGNALS
Maximum number of spherical harmonic components/signals supported.
SH_ORDERS
Available spherical harmonic (SH) input/output order options.
A basic Ambisonic encoder.
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
Framesize, in time-domain samples.
Main include header for the Spatial_Audio_Framework (SAF)
Include header for SAF externals.
Main structure for ambi_enc.
int enablePostScaling
Flag 1: output signals scaled by 1/sqrt(nSources), 0: disabled.
int new_nSources
New number of input signals (current value will be replaced by this after next re-init)
CH_ORDER chOrdering
Ambisonic channel order convention (see CH_ORDER)
int nSources
Current number of input signals.
NORM_TYPES norm
Ambisonic normalisation convention (see NORM_TYPES)
float fs
Host sampling rate.
SH_ORDERS order
Current SH encoding order.