JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::VBAP::LUTBuilder2D< GetSpeakerAngleFunction > Class Template Reference

Forward declarations. More...

#include <JPLSpatial/Panning/VBAPLUT2D.h>

Public Member Functions

 LUTBuilder2D (ChannelMap channelMap, LUTType &LUT)
 
JPL_INLINE bool RequiresChannelConversion () const noexcept
 
float FindShortestAperture () const
 Find shortest aperture between two speakers of the target map.
 
bool ComputeCellFor (const Vec2 &direction, int lutOffset)
 Comput LUT gains for given direction and LUT offset.
 
bool BuildForAllDirections ()
 Build the entire LUT for all directions.
 

Detailed Description

template<auto GetSpeakerAngleFunction>
class JPL::VBAP::LUTBuilder2D< GetSpeakerAngleFunction >

Forward declarations.

Helper class to build a LUT for a set of directions and indices.

Constructor & Destructor Documentation

◆ LUTBuilder2D()

template<auto GetSpeakerAngleFunction>
JPL::VBAP::LUTBuilder2D< GetSpeakerAngleFunction >::LUTBuilder2D ( ChannelMap channelMap,
LUTType & LUT )
inline

Member Function Documentation

◆ BuildForAllDirections()

template<auto GetSpeakerAngleFunction>
bool JPL::VBAP::LUTBuilder2D< GetSpeakerAngleFunction >::BuildForAllDirections ( )
inlinenodiscard

Build the entire LUT for all directions.

◆ ComputeCellFor()

template<auto GetSpeakerAngleFunction>
bool JPL::VBAP::LUTBuilder2D< GetSpeakerAngleFunction >::ComputeCellFor ( const Vec2 & direction,
int lutOffset )
inlinenodiscard

Comput LUT gains for given direction and LUT offset.

Note: we could use indices here instead of ChannelIds if we'd want to skip LFE in our table

◆ FindShortestAperture()

template<auto GetSpeakerAngleFunction>
float JPL::VBAP::LUTBuilder2D< GetSpeakerAngleFunction >::FindShortestAperture ( ) const
inlinenodiscard

Find shortest aperture between two speakers of the target map.

◆ RequiresChannelConversion()

template<auto GetSpeakerAngleFunction>
JPL_INLINE bool JPL::VBAP::LUTBuilder2D< GetSpeakerAngleFunction >::RequiresChannelConversion ( ) const
inlinenodiscardnoexcept

If target channel map has < 4 speakers, we use intermediary quad map to compute the gains, which are then converte to target map and stored in the LUT


The documentation for this class was generated from the following file: