Zao SDK for Jetson / libzep API Reference
|
Namespace for all audio related elements. More...
Classes | |
class | FactoryInterface |
factory function interface for audio related streams More... | |
class | PcmBufferPoolInterface |
PCM buffer pool interface. More... | |
class | PcmBufferPoolReaderInterface |
PCM buffer pool reader interface. More... | |
class | PcmBufferPoolWriterInterface |
PCM buffer pool writer interface. More... | |
class | PcmBufferReader |
Reader implementation of PCM buffer. More... | |
class | PcmBufferWriter |
Writer implementation of PCM buffer. More... | |
class | PcmFormat |
PCM audio format. More... | |
class | PcmSinkCallbackInterface |
PCMによる音声シンク機能のコールバックインターフェース More... | |
class | PcmSinkInterface |
PCMによる音声シンク機能インターフェース More... | |
class | PcmSourceCallbackInterface |
Callback interface for voice source functionality with PCM. More... | |
class | PcmSourceInterface |
Audio source function interface with PCM. More... | |
Enumerations | |
enum | ChannelBits : unsigned { kLeftChannel = (1u << 0) , kRightChannel , kStereo } |
Channel mask value definition. | |
Functions | |
std::shared_ptr< PcmBufferPoolInterface > | CreatePcmBufferPool (std::size_t samples_per_buffer, std::size_t num_of_buffers) |
Build PCM buffer pool. | |
class zep::audio::PcmBufferReader | PcmBufferReader (const PcmBufferReader &)=delete |
PcmBufferReader & | operator= (const PcmBufferReader &)=delete |
~PcmBufferReader () noexcept | |
Destroy PcmBufferReader object. | |
bool | IsValid () const noexcept |
Get whether or not a valid buffer is held. | |
operator bool () const noexcept | |
Get whether or not a valid buffer is held. | |
const std::int16_t * | GetPointer () const noexcept |
Get the first pointer to the managed buffer. | |
std::size_t | GetReadableSamples () const noexcept |
Get the number of valid samples. | |
TimestampInterface::Rep | GetHeadTimestamp () const noexcept |
Get the leading timestamp. | |
void | Finalize () noexcept |
Notify the completion of reading data from the buffer. | |
void | SetSamplingRate (int new_value) noexcept |
Set sampling rate (in Hz). | |
unsigned | GetChannelMask () const noexcept |
Get the channel mask. | |
void | SetChannelMask (unsigned new_value) noexcept |
Set the channel mask. | |
int | GetNumOfChannels () const noexcept |
Get the number of channels. | |
Variables | |
enum zep::audio::ChannelBits | GetSamplingRate () const noexcept |
Get sampling rate (in Hz). | |
Namespace for all audio related elements.
音声関係の要素をまとめた名前空間
std::shared_ptr< PcmBufferPoolInterface > zep::audio::CreatePcmBufferPool | ( | std::size_t | samples_per_buffer, |
std::size_t | num_of_buffers | ||
) |
Build PCM buffer pool.
PCMバッファプールを構築する。
samples_per_buffer | Number of samples per buffer |
num_of_buffers | Number of buffers |
samples_per_buffer | 1バッファあたりのサンプル数 |
num_of_buffers | バッファの数 |
|
inlinenoexcept |
Notify the completion of reading data from the buffer.
|
noexcept |
|
noexcept |
Get the number of channels.
|
noexcept |
Get the first pointer to the managed buffer.
nullptr | no managed buffer |
non-nullptr | First pointer to managed buffer |
|
noexcept |
Get the number of valid samples.
0 | no valid element (including cases where no valid buffer is kept). |
|
noexcept |
Get whether or not a valid buffer is held.
true | holds a valid buffer |
false | No valid buffer is retained |
|
explicitnoexcept |
Get whether or not a valid buffer is held.
true | holds a valid buffer |
false | Does not hold a valid buffer |
|
noexcept |
Set the channel mask.
new_value | channel_mask(bit0=Left, bit1=Right) |
|
noexcept |
Set sampling rate (in Hz).
new_value | Sampling rate [Hz]. |