Up-sample first-order content when using a higher order HQ decoder
[openal-soft.git] / Alc / bformatdec.h
blob623e7b0959cd91141cb82a8403c21732f593f864
1 #ifndef BFORMATDEC_H
2 #define BFORMATDEC_H
4 #include "alMain.h"
6 struct AmbDecConf;
7 struct BFormatDec;
9 struct BFormatDec *bformatdec_alloc();
10 void bformatdec_free(struct BFormatDec *dec);
11 int bformatdec_getOrder(const struct BFormatDec *dec);
12 void bformatdec_reset(struct BFormatDec *dec, const struct AmbDecConf *conf, ALuint chancount, ALuint srate, const ALuint chanmap[MAX_OUTPUT_CHANNELS]);
14 /* Decodes the ambisonic input to the given output channels. */
15 void bformatdec_process(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALuint OutChannels, ALfloat (*restrict InSamples)[BUFFERSIZE], ALuint SamplesToDo);
17 /* Up-samples a first-order input to the decoder's configuration. */
18 void bformatdec_upSample(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALfloat (*restrict InSamples)[BUFFERSIZE], ALuint InChannels, ALuint SamplesToDo);
20 #endif /* BFORMATDEC_H */