diff options
author | Chris Robinson <[email protected]> | 2015-02-09 15:59:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-02-09 15:59:29 -0800 |
commit | a1d4847d078f4f807f5697f299eea834797f4287 (patch) | |
tree | 376b457d1655bd0db7747913cdf77be262a831f5 /Alc/hrtf.h | |
parent | 8933e21ef21c2084570eb9cb998a47053b686ed1 (diff) |
Use B-Format for HRTF's virtual output format
This adds the ability to directly decode B-Format with HRTF, though only first-
order (WXYZ) for now. Second- and third-order would be easilly doable, however
we'd need to be able to up-mix first-order content (from the BFORMAT2D and
BFORMAT3D buffer formats) since it would be inappropriate to decode lower-order
content with a higher-order decoder.
Diffstat (limited to 'Alc/hrtf.h')
-rw-r--r-- | Alc/hrtf.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -23,5 +23,6 @@ void FreeHrtfs(void); ALuint GetHrtfIrSize(const struct Hrtf *Hrtf); void GetLerpedHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat dirfact, ALfloat gain, ALfloat (*coeffs)[2], ALuint *delays); ALuint GetMovingHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat dirfact, ALfloat gain, ALfloat delta, ALint counter, ALfloat (*coeffs)[2], ALuint *delays, ALfloat (*coeffStep)[2], ALint *delayStep); +void GetBFormatHrtfCoeffs(const struct Hrtf *Hrtf, const ALfloat ambi_coeffs[4], ALfloat (*coeffs)[2], ALuint *delays); #endif /* ALC_HRTF_H */ |