42 case SOURCE_CONFIG_PRESET_DEFAULT:
44 case SOURCE_CONFIG_PRESET_MONO:
46 for(ch=0; ch<nCH; ch++)
50 case SOURCE_CONFIG_PRESET_STEREO:
52 for(ch=0; ch<nCH; ch++)
56 case SOURCE_CONFIG_PRESET_5PX:
58 for(ch=0; ch<nCH; ch++)
62 case SOURCE_CONFIG_PRESET_7PX:
64 for(ch=0; ch<nCH; ch++)
68 case SOURCE_CONFIG_PRESET_8PX:
70 for(ch=0; ch<nCH; ch++)
74 case SOURCE_CONFIG_PRESET_9PX:
76 for(ch=0; ch<nCH; ch++)
80 case SOURCE_CONFIG_PRESET_10PX:
82 for(ch=0; ch<nCH; ch++)
86 case SOURCE_CONFIG_PRESET_11PX:
88 for(ch=0; ch<nCH; ch++)
92 case SOURCE_CONFIG_PRESET_11PX_7_4:
94 for(ch=0; ch<nCH; ch++)
98 case SOURCE_CONFIG_PRESET_13PX:
100 for(ch=0; ch<nCH; ch++)
104 case SOURCE_CONFIG_PRESET_22PX:
106 for(ch=0; ch<nCH; ch++)
110 case SOURCE_CONFIG_PRESET_22P2_9_10_3:
113 case SOURCE_CONFIG_PRESET_AALTO_MCC:
115 for(ch=0; ch<nCH; ch++)
119 case SOURCE_CONFIG_PRESET_AALTO_MCC_SUBSET:
121 for(ch=0; ch<nCH; ch++)
125 case SOURCE_CONFIG_PRESET_AALTO_APAJA:
127 for(ch=0; ch<nCH; ch++)
131 case SOURCE_CONFIG_PRESET_AALTO_LR:
133 for(ch=0; ch<nCH; ch++)
137 case SOURCE_CONFIG_PRESET_DTU_AVIL:
139 for(ch=0; ch<nCH; ch++)
143 case SOURCE_CONFIG_PRESET_ZYLIA_LAB:
145 for(ch=0; ch<nCH; ch++)
149 case SOURCE_CONFIG_PRESET_T_DESIGN_4:
151 for(ch=0; ch<nCH; ch++)
155 case SOURCE_CONFIG_PRESET_T_DESIGN_12:
157 for(ch=0; ch<nCH; ch++)
161 case SOURCE_CONFIG_PRESET_T_DESIGN_24:
163 for(ch=0; ch<nCH; ch++)
167 case SOURCE_CONFIG_PRESET_T_DESIGN_36:
169 for(ch=0; ch<nCH; ch++)
173 case SOURCE_CONFIG_PRESET_T_DESIGN_48:
175 for(ch=0; ch<nCH; ch++)
179 case SOURCE_CONFIG_PRESET_T_DESIGN_60:
181 for(ch=0; ch<nCH; ch++)
185 case SOURCE_CONFIG_PRESET_SPH_COV_9:
187 for(ch=0; ch<nCH; ch++)
191 case SOURCE_CONFIG_PRESET_SPH_COV_16:
193 for(ch=0; ch<nCH; ch++)
197 case SOURCE_CONFIG_PRESET_SPH_COV_25:
199 for(ch=0; ch<nCH; ch++)
203 case SOURCE_CONFIG_PRESET_SPH_COV_49:
205 for(ch=0; ch<nCH; ch++)
209 case SOURCE_CONFIG_PRESET_SPH_COV_64:
211 for(ch=0; ch<nCH; ch++)
216 saf_assert(nCH>0,
"Number of channels must be more than 0");
#define MAX_NUM_INPUTS
Maximum number of input channels supported.
SOURCE_CONFIG_PRESETS
Available source configurations presets to use for encoding/panning.
A basic Ambisonic encoder.
void loadSourceConfigPreset(SOURCE_CONFIG_PRESETS preset, float dirs_deg[MAX_NUM_INPUTS][2], int *newNCH)
Returns the source directions for a specified source config preset.
A basic Ambisonic encoder.
#define saf_print_error(message)
Macro to print a error message along with the filename and line number.
const float __Zylia_Lab_dirs_deg[22][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for the 22.x setup, at Zylia Labs.
#define saf_assert(x, message)
Macro to make an assertion, along with a string explaining its purpose.
const float __9pX_dirs_deg[9][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 9.x setup.
const float __SphCovering_16_dirs_deg[16][2]
Directions [azimuth, Elevation] in degrees, for sphere covering: 16 dirs.
const float __Aalto_MCC_dirs_deg[45][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for the multi-channel anechoic chamber (MCC),...
const float __SphCovering_49_dirs_deg[49][2]
Directions [azimuth, Elevation] in degrees, for sphere covering: 49 dirs.
const float __mono_dirs_deg[1][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a mono setup.
const float __5pX_dirs_deg[5][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 5.x setup.
const float __11pX_dirs_deg[11][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 11.x setup.
const float __Tdesign_degree_9_dirs_deg[48][2]
Directions [azimuth, Elevation] in degrees, for minimum Tdesign degree: 9.
const float __Tdesign_degree_2_dirs_deg[4][2]
Directions [azimuth, Elevation] in degrees, for minimum Tdesign degree: 2.
const float __11pX_7_4_dirs_deg[11][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 7.4.x setup.
const float __Tdesign_degree_8_dirs_deg[36][2]
Directions [azimuth, Elevation] in degrees, for minimum Tdesign degree: 8.
const float __default_LScoords128_deg[128][2]
Default Loudspeaker directions [azimuth, Elevation] - to replace above!
const float __Aalto_MCCsubset_dirs_deg[37][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for the multi-channel anechoic chamber (MCC) ...
const float __Aalto_Apaja_dirs_deg[29][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for the audio-visual listening room (Apaja),...
const float __SphCovering_9_dirs_deg[9][2]
Directions [azimuth, Elevation] in degrees, for sphere covering: 9 dirs.
const float __stereo_dirs_deg[2][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a stereo setup.
const float __SphCovering_64_dirs_deg[64][2]
Directions [azimuth, Elevation] in degrees, for sphere covering: 64 dirs.
const float __Tdesign_degree_4_dirs_deg[12][2]
Directions [azimuth, Elevation] in degrees, for minimum Tdesign degree: 4.
const float __Aalto_LR_dirs_deg[13][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for the ITU standard listening room (LR),...
const float __DTU_AVIL_dirs_deg[64][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for the Audio Visual Immersion Lab (AVIL),...
const float __8pX_dirs_deg[8][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 8.x setup.
const float __Tdesign_degree_6_dirs_deg[24][2]
Directions [azimuth, Elevation] in degrees, for minimum Tdesign degree: 6.
const float __13pX_dirs_deg[13][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 13.x setup.
const float __7pX_dirs_deg[7][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 7.x setup.
const float __22pX_dirs_deg[22][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 22.x setup.
const float __SphCovering_25_dirs_deg[25][2]
Directions [azimuth, Elevation] in degrees, for sphere covering: 25 dirs.
const float __Tdesign_degree_10_dirs_deg[60][2]
Directions [azimuth, Elevation] in degrees, for minimum Tdesign degree: 10.
const float __10pX_dirs_deg[10][2]
Loudspeaker directions [azimuth, Elevation] in degrees, for a 10.x setup.