aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-02-09 15:59:29 -0800
committerChris Robinson <[email protected]>2015-02-09 15:59:29 -0800
commita1d4847d078f4f807f5697f299eea834797f4287 (patch)
tree376b457d1655bd0db7747913cdf77be262a831f5 /Alc/hrtf.h
parent8933e21ef21c2084570eb9cb998a47053b686ed1 (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/hrtf.h b/Alc/hrtf.h
index 3eaa4e28..122a4c58 100644
--- a/Alc/hrtf.h
+++ b/Alc/hrtf.h
@@ -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 */