diff options
author | Chris Robinson <[email protected]> | 2019-02-21 02:13:30 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-21 02:13:30 -0800 |
commit | 7e00f646d9bd79bdeb9b9435288c273db55f7c41 (patch) | |
tree | 400d3ab7f27caf6857dc85b56788843e14b76245 /OpenAL32 | |
parent | 615446d6d5e49765afbb846026385b5e35415956 (diff) |
Add a method to get the row of an ambisonic identity transform
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 052302b8..8b496a45 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -432,6 +432,13 @@ inline void ComputePanGains(const MixParams *dry, const ALfloat*RESTRICT coeffs, void ComputePanGains(const ALeffectslot *slot, const ALfloat*RESTRICT coeffs, ALfloat ingain, ALfloat (&gains)[MAX_OUTPUT_CHANNELS]); +inline std::array<ALfloat,MAX_AMBI_CHANNELS> GetAmbiIdentityRow(size_t i) noexcept +{ + std::array<ALfloat,MAX_AMBI_CHANNELS> ret{}; + ret[i] = 1.0f; + return ret; +} + ALboolean MixSource(ALvoice *voice, const ALuint SourceID, ALCcontext *Context, const ALsizei SamplesToDo); |