HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
stores information about the channel layout. More...
#include <AudioChannelLayout.h>
Public Member Functions | |
constexpr | AudioChannelLayout () |
constexpr | AudioChannelLayout (uint16_t count, AudioChannelMask mask) |
constexpr bool | operator== (const AudioChannelLayout &rhs) const |
constexpr bool | operator!= (const AudioChannelLayout &rhs) const |
Static Public Member Functions | |
static constexpr AudioChannelMask | DefaultChannelMask (uint16_t channelCount) |
static constexpr AudioChannelLayout | DefaultChannelLayout (uint16_t channelCount) |
static constexpr uint16_t | GetChannelCount (AudioChannelMask mask) |
static constexpr uint16_t | GetChannelCount (const AudioChannelLayout &layout) |
static std::vector< AudioChannelMask > | GetChannelMapping (AudioChannelMask mask) |
static std::vector< AudioChannelMask > | GetChannelMapping (const AudioChannelLayout &layout) |
Public Attributes | |
uint16_t | count |
AudioChannelMask | mask |
stores information about the channel layout.
|
inlineconstexpr |
creates a new instance and initializes it with default values.
|
inlineconstexpr |
creates a new instance and initializes it with the provided values.
count | number of channels present. |
mask | indicates which channels are used. |
|
inlinestaticconstexpr |
gets the default channel mask for the channelCount.
|
inlinestaticconstexpr |
gets the default channel layout for the channelCount.
|
inlinestaticconstexpr |
gets the number of channels used.
|
inlinestaticconstexpr |
gets the number of channels used in the layout.
|
static |
gets the channel mapping that corresponds to the channel mask.
|
static |
gets the channel mapping that corresponds to the channel layout.
uint16_t HephAudio::AudioChannelLayout::count |
number of channels present.
AudioChannelMask HephAudio::AudioChannelLayout::mask |
indicates which channels are used.