JPL Spatial
Sound spatialization and propagation library
Loading...
Searching...
No Matches
ChannelMap.h File Reference
#include "Core.h"
#include "ErrorReporting.h"
#include <bit>
#include <string_view>

Go to the source code of this file.

Classes

class  JPL::ChannelMap
 
struct  JPL::NamedChannelMask
 Utility to hold some channel mask with a name. More...
 
struct  std::hash< JPL::ChannelMap >
 

Namespaces

namespace  JPL
 
namespace  JPL::ChannelMask
 Common channel masks.
 
namespace  std
 

Enumerations

enum  JPL::EChannel : uint32 {
  JPL::FrontLeft = JPL_BIT(0) , JPL::FrontRight = JPL_BIT(1) , JPL::FrontCenter = JPL_BIT(2) , JPL::LFE = JPL_BIT(3) ,
  JPL::SideLeft = JPL_BIT(4) , JPL::SideRight = JPL_BIT(5) , JPL::FrontLeftCenter = JPL_BIT(6) , JPL::FrontRightCenter = JPL_BIT(7) ,
  JPL::BackLeft = JPL_BIT(8) , JPL::BackRight = JPL_BIT(9) , JPL::BackCenter = JPL_BIT(10) , JPL::WideLeft = JPL_BIT(11) ,
  JPL::WideRight = JPL_BIT(12) , JPL::TopCenter = JPL_BIT(13) , JPL::TopFrontLeft = JPL_BIT(14) , JPL::TopFrontCenter = JPL_BIT(15) ,
  JPL::TopFrontRight = JPL_BIT(16) , JPL::TopSideLeft = JPL_BIT(17) , JPL::TopSideRight = JPL_BIT(18) , JPL::TopBackLeft = JPL_BIT(19) ,
  JPL::TopBackCenter = JPL_BIT(20) , JPL::TopBackRight = JPL_BIT(21) , JPL::NUM_GroundChannels = std::bit_width((uint32)WideRight) , JPL::TOP_Channels = TopCenter ,
  JPL::NUM_TopChannels = std::bit_width((uint32)TopBackRight) - NUM_GroundChannels , JPL::Invalid = 0
}
 

Functions

JPL_INLINE std::string_view JPL::ChannelMask::ToString (uint32 channelMask)