diff options
author | Chris Robinson <[email protected]> | 2016-07-30 09:29:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-07-30 09:29:21 -0700 |
commit | 33a84f17ac78ac1f77b48fbd1193fafab5ca14e7 (patch) | |
tree | 66055c0a89d22552b856038434333b2ca2eb06cc /Alc/bformatdec.h | |
parent | b5b3ea95f899410a5392fb633ace74c10bbd9921 (diff) |
Add a stand-alone upsampler for higher-order ambisonic oputput
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r-- | Alc/bformatdec.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h index 3ad06373..be5a69f6 100644 --- a/Alc/bformatdec.h +++ b/Alc/bformatdec.h @@ -5,6 +5,7 @@ struct AmbDecConf; struct BFormatDec; +struct AmbiUpsampler; enum BFormatDecFlags { BFDF_DistanceComp = 1<<0 @@ -21,4 +22,13 @@ void bformatdec_process(struct BFormatDec *dec, ALfloat (*restrict OutBuffer)[BU /* 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); +/* Stand-alone first-order upsampler. Kept here because it shares some stuff + * with bformatdec. + */ +struct AmbiUpsampler *ambiup_alloc(); +void ambiup_free(struct AmbiUpsampler *ambiup); +void ambiup_reset(struct AmbiUpsampler *ambiup, const ALCdevice *device); + +void ambiup_process(struct AmbiUpsampler *ambiup, ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALuint OutChannels, ALfloat (*restrict InSamples)[BUFFERSIZE], ALuint SamplesToDo); + #endif /* BFORMATDEC_H */ |