diff options
author | Chris Robinson <[email protected]> | 2016-03-23 10:39:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-03-23 10:39:14 -0700 |
commit | 0dc35784dbaa37857e988582f41482ef9b59d8a0 (patch) | |
tree | 6dc27089292b78c529d7db5a6015891e1ed14c03 /OpenAL32 | |
parent | 713ac9e6790ac5bb9491a893c9b2ee0a693878b7 (diff) |
Allow second-order HQ decoding
Could really do with some optimizations to the mixing gain calculations. For
ambisonic targets, the coefficients will only have 1 non-0 entry for each
output, so the double loop in unnecessarily wasteful. Similarly, most uses
won't need a full height encoding either, so a horizontal-only or mixed-order
target could reduce the number of channels.
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index b870059b..71620c3f 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -330,6 +330,11 @@ enum Channel { Aux1, Aux2, Aux3, + Aux4, + Aux5, + Aux6, + Aux7, + Aux8, InvalidChannel }; @@ -362,7 +367,7 @@ enum DevFmtChannels { DevFmtChannelsDefault = DevFmtStereo }; -#define MAX_OUTPUT_CHANNELS (8) +#define MAX_OUTPUT_CHANNELS (9) ALuint BytesFromDevFmt(enum DevFmtType type) DECL_CONST; ALuint ChannelsFromDevFmt(enum DevFmtChannels chans) DECL_CONST; |