7 /* Helpers to read .ambdec configuration files. */
14 typedef struct AmbDecConf
{
15 al_string Description
;
16 ALuint Version
; /* Must be 3 */
19 ALuint FreqBands
; /* Must be 1 or 2 */
21 enum AmbDecScaleType CoeffScale
;
32 } Speakers
[MAX_OUTPUT_CHANNELS
];
34 /* Unused when FreqBands == 1 */
35 ALfloat LFOrderGain
[MAX_AMBI_ORDER
+1];
36 ALfloat LFMatrix
[MAX_OUTPUT_CHANNELS
][MAX_AMBI_COEFFS
];
38 ALfloat HFOrderGain
[MAX_AMBI_ORDER
+1];
39 ALfloat HFMatrix
[MAX_OUTPUT_CHANNELS
][MAX_AMBI_COEFFS
];
42 void ambdec_init(AmbDecConf
*conf
);
43 void ambdec_deinit(AmbDecConf
*conf
);
44 int ambdec_load(AmbDecConf
*conf
, const char *fname
);