Add a method to get the row of an ambisonic identity transform

This commit is contained in:
Chris Robinson
2019-02-21 02:13:30 -08:00
parent 615446d6d5
commit 7e00f646d9
+7
View File
@@ -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);