PCM audio format.
More...
#include <PcmFormat.hpp>
|
enum | ChannelBits : unsigned { kLeftChannel = (1u << 0)
, kRightChannel = (1u << 1)
, kStereo = kLeftChannel | kRightChannel
} |
| チャンネルマスクの値定義
|
|
|
| PcmFormat () noexcept |
| Construct a PcmFormat object by default.
|
|
| PcmFormat (int sampling_rate, unsigned channel_mask) noexcept |
| Construct a PcmFormat object with initial values.
|
|
| 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同士を非等値比較する
|
|
PCM audio format.
PCM音声のフォーマット
◆ PcmFormat() [1/4]
zep::audio::PcmFormat::PcmFormat |
( |
| ) |
|
|
inlinenoexcept |
Construct a PcmFormat object by default.
- Note
- Each field is initialized with an invalid value.
◆ PcmFormat() [2/4]
zep::audio::PcmFormat::PcmFormat |
( |
int |
sampling_rate, |
|
|
unsigned |
channel_mask |
|
) |
| |
|
inlinenoexcept |
Construct a PcmFormat object with initial values.
- Parameters
-
sampling_rate | Initial value of sampling rate [Hz]. |
channel_mask | Initial value of channel mask |
◆ PcmFormat() [3/4]
zep::audio::PcmFormat::PcmFormat |
( |
| ) |
|
|
inlinenoexcept |
PcmFormatオブジェクトをデフォルト構築する。
- Note
- 各フィールドは無効な値で初期化される。
◆ PcmFormat() [4/4]
zep::audio::PcmFormat::PcmFormat |
( |
int |
sampling_rate, |
|
|
unsigned |
channel_mask |
|
) |
| |
|
inlinenoexcept |
PcmFormatオブジェクトを初期値付きで構築する。
- Parameters
-
sampling_rate | サンプリングレートの初期値[Hz] |
channel_mask | チャンネルマスクの初期値 |
◆ GetChannelMask()
unsigned zep::audio::PcmFormat::GetChannelMask |
( |
| ) |
const |
|
inlinenoexcept |
◆ GetNumOfChannels()
int zep::audio::PcmFormat::GetNumOfChannels |
( |
| ) |
const |
|
inlinenoexcept |
チャンネル数を取得する。
- Note
- チャンネルマスクの1のビットの数に等しい。
◆ operator!=()
bool zep::audio::PcmFormat::operator!= |
( |
const PcmFormat & |
other | ) |
const |
|
inlinenoexcept |
PcmFormat同士を非等値比較する
- Parameters
-
- Return values
-
◆ operator==()
bool zep::audio::PcmFormat::operator== |
( |
const PcmFormat & |
other | ) |
const |
|
inlinenoexcept |
PcmFormat同士を等値比較する
- Parameters
-
- Return values
-
◆ SetChannelMask()
void zep::audio::PcmFormat::SetChannelMask |
( |
unsigned |
new_value | ) |
|
|
inlinenoexcept |
チャンネルマスクを設定する。
- Parameters
-
new_value | チャンネルマスク(bit0=Left, bit1=Right) |
◆ SetSamplingRate()
void zep::audio::PcmFormat::SetSamplingRate |
( |
int |
new_value | ) |
|
|
inlinenoexcept |
サンプリングレート(Hz単位)を設定する。
- Parameters
-
The documentation for this class was generated from the following files:
- /Users/manabutogawa/Downloads/libzep_doxygen_src.20230515/include/zep-en/audio/PcmFormat.hpp
- /Users/manabutogawa/Downloads/libzep_doxygen_src.20230515/include/zep/audio/PcmFormat.hpp