|
JPL Spatial
Sound spatialization and propagation library
|
Interface to query LUT gains for a direction. More...
#include <JPLSpatial/Panning/VBAPLUT3D.h>
Classes | |
| struct | VBAPCell |
| Data extracted from LUT for specific source direction. More... | |
Public Member Functions | |
| JPL_INLINE | LUTQuery (const LUTType &lut) noexcept |
| template<CVec3 Vec3Type> | |
| void | GainsFor (const Vec3Type &direction, VBAPCell &outSpeakerGains) const |
| void | GainsFor (const simd &dirX, const simd &dirY, const simd &dirZ, std::array< SpeakerIdx, 3 *simd::size()> &outIndices, std::array< float, 3 *simd::size()> &outGains) const |
| template<CVec3 Vec3Type> | |
| JPL_INLINE void | GainsFor (const Vec3Type &direction, std::span< float > outGains) const |
Public Attributes | |
| const LUTType & | LUT |
Static Public Attributes | |
| static constexpr bool | bLUTHasGains = !std::same_as<typename LUTType::GainType, GainTypeNone> |
Interface to query LUT gains for a direction.
|
inlineexplicitnoexcept |
|
inline |
| JPL_INLINE void JPL::VBAP::LUTQuery< LUTType, LUTCodec, Vec3TypeImplicit >::GainsFor | ( | const Vec3Type & | direction, |
| std::span< float > | outGains | ||
| ) | const |
|
inline |
Function to query LUT gains for a direction.
| direction | : has to be normalized unit vector |
|
staticconstexpr |
If LUT doesn't have precomputed gains, querying computes inverse speaker matrix multiplication to get the gains for the query direction
| const LUTType& JPL::VBAP::LUTQuery< LUTType, LUTCodec, Vec3TypeImplicit >::LUT |