Zao SDK for Jetson / libzao-endpoint API リファレンス 1.6.0.0 (2024-12-24)
Loading...
Searching...
No Matches
PcmSinkBufferInterface.hpp
1#ifndef ZAO_ENDPOINT_AUDIO_PCM_SINK_BUFFER_INTERFACE_HPP_
2#define ZAO_ENDPOINT_AUDIO_PCM_SINK_BUFFER_INTERFACE_HPP_
3
4#include <cstddef>
5#include <cstdint>
6
7#include "../TimestampInterface.hpp"
8
9namespace zao {
10namespace endpoint {
11namespace audio {
12
25 public:
30 virtual const std::int16_t* GetPointer() const = 0;
31
36 virtual std::size_t GetLength() const = 0;
37
49
56 virtual bool IsIncontiguous() const = 0;
57
62 virtual ~PcmSinkBufferInterface() noexcept = default;
63};
64
65} // namespace audio
66} // namespace endpoint
67} // namespace zao
68
69#endif // ZAO_ENDPOINT_AUDIO_PCM_SINK_BUFFER_INTERFACE_HPP_
std::uint64_t Rep
タイムスタンプの表現に用いる整数型
Definition TimestampInterface.hpp:19
PCM受信用バッファのインターフェース。
Definition PcmSinkBufferInterface.hpp:24
virtual TimestampInterface::Rep GetTimestamp() const =0
タイムスタンプを取得する。
virtual bool IsIncontiguous() const =0
前回のバッファ取得からこのバッファまでの間に、 データの不連続があるかを取得する。
virtual std::size_t GetLength() const =0
バッファの有効サンプル数を取得する。
virtual const std::int16_t * GetPointer() const =0
バッファのポインタを取得する。
virtual ~PcmSinkBufferInterface() noexcept=default
PcmSinkBufferInterface オブジェクトを破棄する。
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11