Use the 3D panned output for reverb with HQ decoding
[openal-soft.git] / Alc / bformatdec.h
blob3ad06373d13a54fdba2d35d84684eea1556a89c1
1 #ifndef BFORMATDEC_H
2 #define BFORMATDEC_H
4 #include "alMain.h"
6 struct AmbDecConf;
7 struct BFormatDec;
9 enum BFormatDecFlags {
10 BFDF_DistanceComp = 1<<0
13 struct BFormatDec *bformatdec_alloc();
14 void bformatdec_free(struct BFormatDec *dec);
15 int bformatdec_getOrder(const struct BFormatDec *dec);
16 void bformatdec_reset(struct BFormatDec *dec, const struct AmbDecConf *conf, ALuint chancount, ALuint srate, const ALuint chanmap[MAX_OUTPUT_CHANNELS], int flags);
18 /* Decodes the ambisonic input to the given output channels. */
19 void bformatdec_process(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALuint OutChannels, ALfloat (*restrict InSamples)[BUFFERSIZE], ALuint SamplesToDo);
21 /* Up-samples a first-order input to the decoder's configuration. */
22 void bformatdec_upSample(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALfloat (*restrict InSamples)[BUFFERSIZE], ALuint InChannels, ALuint SamplesToDo);
24 #endif /* BFORMATDEC_H */