Zao SDK for Jetson / libzao-endpoint API リファレンス 1.6.0.0 (2024-12-24)
Loading...
Searching...
No Matches
FactoryInterface.hpp
1#ifndef ZAO_ENDPOINT_AUDIO_FACTORY_INTERFACE_HPP_
2#define ZAO_ENDPOINT_AUDIO_FACTORY_INTERFACE_HPP_
3
4#include <memory>
5#include <string>
6
7#include "PcmBufferPoolInterface.hpp"
8#include "PcmSinkInterface.hpp"
9#include "PcmSourceInterface.hpp"
10
11namespace zao {
12namespace endpoint {
13
18namespace audio {
19
25 public:
36 virtual std::shared_ptr<PcmSourceInterface> CreatePcmSource(
37 const std::string& stream_name) = 0;
38
49 virtual std::shared_ptr<PcmSinkInterface> CreatePcmSink(
50 const std::string& stream_name) = 0;
51
61 virtual std::shared_ptr<PcmBufferPoolInterface> CreatePcmBufferPool(
62 std::size_t samples_per_buffer, std::size_t num_of_buffers) = 0;
63
68 virtual ~FactoryInterface() noexcept = default;
69};
70
71} // namespace audio
72} // namespace endpoint
73} // namespace zao
74
75#endif // ZAO_ENDPOINT_AUDIO_FACTORY_INTERFACE_HPP_
音声関連ストリームのファクトリ機能インターフェース
Definition FactoryInterface.hpp:24
virtual std::shared_ptr< PcmSourceInterface > CreatePcmSource(const std::string &stream_name)=0
PcmSourceのインスタンスを生成する。
virtual ~FactoryInterface() noexcept=default
FactoryInterface オブジェクトを破棄する。
virtual std::shared_ptr< PcmBufferPoolInterface > CreatePcmBufferPool(std::size_t samples_per_buffer, std::size_t num_of_buffers)=0
PCMバッファプールを生成する。
virtual std::shared_ptr< PcmSinkInterface > CreatePcmSink(const std::string &stream_name)=0
PcmSinkのインスタンスを生成する。
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11