PCM音声のフォーマット
More...
#include <PcmFormat.hpp>
|
enum | ChannelBits : unsigned { kLeftChannel = (1u << 0)
, kRightChannel = (1u << 1)
, kStereo = kLeftChannel | kRightChannel
} |
| チャンネルマスクの値定義
|
|
|
| PcmFormat () noexcept |
| PcmFormatオブジェクトをデフォルト構築する。
|
|
| PcmFormat (int sampling_rate, unsigned channel_mask) noexcept |
| PcmFormatオブジェクトを初期値付きで構築する。
|
|
int | GetSamplingRate () const noexcept |
| サンプリングレート(Hz単位)を取得する。
|
|
void | SetSamplingRate (int new_value) noexcept |
| サンプリングレート(Hz単位)を設定する。
|
|
unsigned | GetChannelMask () const noexcept |
| チャンネルマスクを取得する。
|
|
void | SetChannelMask (unsigned new_value) noexcept |
| チャンネルマスクを設定する。
|
|
int | GetNumOfChannels () const noexcept |
| チャンネル数を取得する。
|
|
bool | operator== (const PcmFormat &other) const noexcept |
| PcmFormat同士を等値比較する
|
|
bool | operator!= (const PcmFormat &other) const noexcept |
| PcmFormat同士を非等値比較する
|
|
◆ PcmFormat() [1/2]
zao::endpoint::audio::PcmFormat::PcmFormat |
( |
| ) |
|
|
inlinenoexcept |
PcmFormatオブジェクトをデフォルト構築する。
- Note
- 各フィールドは無効な値で初期化される。
◆ PcmFormat() [2/2]
zao::endpoint::audio::PcmFormat::PcmFormat |
( |
int |
sampling_rate, |
|
|
unsigned |
channel_mask |
|
) |
| |
|
inlinenoexcept |
PcmFormatオブジェクトを初期値付きで構築する。
- Parameters
-
sampling_rate | サンプリングレートの初期値[Hz] |
channel_mask | チャンネルマスクの初期値 |
◆ GetChannelMask()
unsigned zao::endpoint::audio::PcmFormat::GetChannelMask |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetNumOfChannels()
int zao::endpoint::audio::PcmFormat::GetNumOfChannels |
( |
| ) |
const |
|
inlinenoexcept |
チャンネル数を取得する。
- Note
- チャンネルマスクの1のビットの数に等しい。
◆ operator!=()
bool zao::endpoint::audio::PcmFormat::operator!= |
( |
const PcmFormat & |
other | ) |
const |
|
inlinenoexcept |
PcmFormat同士を非等値比較する
- Parameters
-
- Return values
-
◆ operator==()
bool zao::endpoint::audio::PcmFormat::operator== |
( |
const PcmFormat & |
other | ) |
const |
|
inlinenoexcept |
PcmFormat同士を等値比較する
- Parameters
-
- Return values
-
◆ SetChannelMask()
void zao::endpoint::audio::PcmFormat::SetChannelMask |
( |
unsigned |
new_value | ) |
|
|
inlinenoexcept |
チャンネルマスクを設定する。
- Parameters
-
new_value | チャンネルマスク(bit0=Left, bit1=Right) |
◆ SetSamplingRate()
void zao::endpoint::audio::PcmFormat::SetSamplingRate |
( |
int |
new_value | ) |
|
|
inlinenoexcept |
サンプリングレート(Hz単位)を設定する。
- Parameters
-
The documentation for this class was generated from the following file:
- /home/jenkins/workspace/J2408.zao_sdk_jetson.build/zep_sdk/libzao-endpoint/include/zao/endpoint/audio/PcmFormat.hpp