diff options
author | Chris Robinson <[email protected]> | 2016-03-26 17:52:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-03-26 17:52:42 -0700 |
commit | 1dcb04157c158fc22390dd99a89469a523dd0109 (patch) | |
tree | 0463f4db6606290ad1601e3f49d601fa1684000d /Alc/bformatdec.h | |
parent | 67db77452fcff2db20294c2e062ffb3684a0b710 (diff) |
Add a config option for distance compensation
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r-- | Alc/bformatdec.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h index 623e7b09..3ad06373 100644 --- a/Alc/bformatdec.h +++ b/Alc/bformatdec.h @@ -6,10 +6,14 @@ struct AmbDecConf; struct BFormatDec; +enum BFormatDecFlags { + BFDF_DistanceComp = 1<<0 +}; + 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]); +void bformatdec_reset(struct BFormatDec *dec, const struct AmbDecConf *conf, ALuint chancount, ALuint srate, const ALuint chanmap[MAX_OUTPUT_CHANNELS], int flags); /* 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); |