10 #define W_SCALE_2H0P 1.224744871f 11 #define XYZ_SCALE_2H0P 1.0f 12 #define W_SCALE_3H0P 1.414213562f 13 #define XYZ_SCALE_3H0P 1.082392196f 18 #define W_SCALE_2H2P 1.341640787f 19 #define XYZ_SCALE_2H2P 1.0f 20 #define W_SCALE_3H3P 1.695486018f 21 #define XYZ_SCALE_3H3P 1.136697713f 27 const ALfloat N3D2N3DScale[MAX_AMBI_COEFFS];
28 const ALfloat SN3D2N3DScale[MAX_AMBI_COEFFS];
29 const ALfloat FuMa2N3DScale[MAX_AMBI_COEFFS];
37 struct BFormatDec *bformatdec_alloc();
38 void bformatdec_free(
struct BFormatDec **dec);
39 void bformatdec_reset(
struct BFormatDec *dec,
const struct AmbDecConf *conf, ALsizei chancount, ALuint srate,
const ALsizei chanmap[MAX_OUTPUT_CHANNELS]);
42 void bformatdec_process(
struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALsizei OutChannels,
const ALfloat (*restrict InSamples)[BUFFERSIZE], ALsizei SamplesToDo);
45 void bformatdec_upSample(
struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE],
const ALfloat (*restrict InSamples)[BUFFERSIZE], ALsizei InChannels, ALsizei SamplesToDo);
51 struct AmbiUpsampler *ambiup_alloc();
52 void ambiup_free(
struct AmbiUpsampler **ambiup);
53 void ambiup_reset(
struct AmbiUpsampler *ambiup,
const ALCdevice *device, ALfloat w_scale, ALfloat xyz_scale);
55 void ambiup_process(
struct AmbiUpsampler *ambiup, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALsizei OutChannels,
const ALfloat (*restrict InSamples)[BUFFERSIZE], ALsizei SamplesToDo);