JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::VBAP::Panning3D< Traits, cLUTType >::SourceLayout::Dimensions Struct Reference

#include <JPLSpatial/Panning/VBAPanning3D.h>

Public Member Functions

JPL_INLINE size_t GetSize () const noexcept
 Get total number of virtual sources for these dimentions.
 

Static Public Member Functions

static Dimensions For (uint32 numChannels, float maxGeoDistanceDot=std::numeric_limits< float >::max())
 Calculate dimensions for numChannels with maxGeoDistanceDot between points.
 

Public Attributes

uint32 NumRings
 Number of rings to generate for a spread cap.
 
uint32 NumSamplesPerRing
 Number samples (virtual soruces) to generate for each ring of a spread cap.
 

Detailed Description

template<class Traits, auto cLUTType>
struct JPL::VBAP::Panning3D< Traits, cLUTType >::SourceLayout::Dimensions

Represents dimentions of the virtual source group cap on a 3D sphere. This structure serves to distribute "just enough" virtual sources per source channel to produce gap-less image for given target speaker/channel map.

Member Function Documentation

◆ For()

template<class Traits , auto cLUTType>
Panning3D< Traits, cLUTType >::SourceLayout::Dimensions JPL::VBAP::Panning3D< Traits, cLUTType >::SourceLayout::Dimensions::For ( uint32  numChannels,
float  maxGeoDistanceDot = std::numeric_limits<float>::max() 
)
inlinestatic

Calculate dimensions for numChannels with maxGeoDistanceDot between points.

we probably want half the circumfrance to distribute between rings, since rings cross equator in two places

◆ GetSize()

template<class Traits , auto cLUTType>
JPL_INLINE size_t JPL::VBAP::Panning3D< Traits, cLUTType >::SourceLayout::Dimensions::GetSize ( ) const
inlinenoexcept

Get total number of virtual sources for these dimentions.

Member Data Documentation

◆ NumRings

template<class Traits , auto cLUTType>
uint32 JPL::VBAP::Panning3D< Traits, cLUTType >::SourceLayout::Dimensions::NumRings

Number of rings to generate for a spread cap.

◆ NumSamplesPerRing

template<class Traits , auto cLUTType>
uint32 JPL::VBAP::Panning3D< Traits, cLUTType >::SourceLayout::Dimensions::NumSamplesPerRing

Number samples (virtual soruces) to generate for each ring of a spread cap.


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