JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
JPL::VBAP::ChannelAngle Struct Reference

#include <JPLSpatial/Panning/VBAPEx.h>

Public Member Functions

JPL_INLINE constexpr std::strong_ordering operator<=> (const ChannelAngle &other) const noexcept
 
JPL_INLINE constexpr bool operator== (const ChannelAngle &other) const noexcept
 

Static Public Member Functions

template<template< typename... > class ArrayType, class ... Args>
static void GetSortedChannelAngles (ChannelMap channelMap, ArrayType< ChannelAngle, Args... > &sortedChannelAngles, std::function< float(EChannel)> getChannelAngle, bool skipLFE=true)
 Get channel angles from ChannelMap, normalize to [0, Pi] and sort in assending order.
 

Public Attributes

float Angle
 
uint32 ChannelId
 

Member Function Documentation

◆ GetSortedChannelAngles()

template<template< typename... > class ArrayType, class ... Args>
static void JPL::VBAP::ChannelAngle::GetSortedChannelAngles ( ChannelMap  channelMap,
ArrayType< ChannelAngle, Args... > &  sortedChannelAngles,
std::function< float(EChannel)>  getChannelAngle,
bool  skipLFE = true 
)
inlinestatic

Get channel angles from ChannelMap, normalize to [0, Pi] and sort in assending order.

Note: we may want to handle this differently if the user expects LFE in the audio block (e.g. we could skip it in ProcessVBAPData, while set mix matrix gains for LFE to 0.0)

◆ operator<=>()

JPL_INLINE constexpr std::strong_ordering JPL::VBAP::ChannelAngle::operator<=> ( const ChannelAngle other) const
inlineconstexprnoexcept

◆ operator==()

JPL_INLINE constexpr bool JPL::VBAP::ChannelAngle::operator== ( const ChannelAngle other) const
inlineconstexprnoexcept

Member Data Documentation

◆ Angle

float JPL::VBAP::ChannelAngle::Angle

◆ ChannelId

uint32 JPL::VBAP::ChannelAngle::ChannelId

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