aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-03-23 12:53:36 -0700
committerChris Robinson <[email protected]>2016-03-23 15:10:59 -0700
commit147274f165b5cf8f1f004567c777e0e274c9e228 (patch)
tree4cfa2bff040a95b6847604f010602425b259ae9c /Alc/bformatdec.h
parent0dc35784dbaa37857e988582f41482ef9b59d8a0 (diff)
Up-sample first-order content when using a higher order HQ decoder
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r--Alc/bformatdec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h
index 5f17d711..623e7b09 100644
--- a/Alc/bformatdec.h
+++ b/Alc/bformatdec.h
@@ -10,6 +10,11 @@ struct BFormatDec *bformatdec_alloc();
void bformatdec_free(struct BFormatDec *dec);
int bformatdec_getOrder(const struct BFormatDec *dec);
void bformatdec_reset(struct BFormatDec *dec, const struct AmbDecConf *conf, ALuint chancount, ALuint srate, const ALuint chanmap[MAX_OUTPUT_CHANNELS]);
+
+/* Decodes the ambisonic input to the given output channels. */
void bformatdec_process(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALuint OutChannels, ALfloat (*restrict InSamples)[BUFFERSIZE], ALuint SamplesToDo);
+/* Up-samples a first-order input to the decoder's configuration. */
+void bformatdec_upSample(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALfloat (*restrict InSamples)[BUFFERSIZE], ALuint InChannels, ALuint SamplesToDo);
+
#endif /* BFORMATDEC_H */