Zao SDK for Jetson / libzep API リファレンス  1.0.0.0 (2023-05-08)
FactoryInterface.hpp
1 #ifndef ZEP_AUDIO_FACTORY_INTERFACE_HPP_
2 #define ZEP_AUDIO_FACTORY_INTERFACE_HPP_
3 
4 #include <memory>
5 #include <string>
6 
7 #include "PcmSinkInterface.hpp"
8 #include "PcmSourceInterface.hpp"
9 
10 namespace zep {
11 
15 namespace audio {
16 
21  public:
27  virtual std::unique_ptr<PcmSourceInterface> CreatePcmSource(
28  const std::string& stream_name) = 0;
29 
35  virtual std::unique_ptr<PcmSinkInterface> CreatePcmSink(
36  const std::string& stream_name) = 0;
37 
38  virtual ~FactoryInterface() noexcept = default;
39 };
40 
41 } // namespace audio
42 } // namespace zep
43 
44 #endif // ZEP_AUDIO_FACTORY_INTERFACE_HPP_
ZEP SDK用名前空間
Definition: FactoryInterface.hpp:10
virtual std::unique_ptr< PcmSourceInterface > CreatePcmSource(const std::string &stream_name)=0
PcmSourceのインスタンスを生成する。
virtual std::unique_ptr< PcmSinkInterface > CreatePcmSink(const std::string &stream_name)=0
PcmSinkのインスタンスを生成する。
音声関連ストリームのファクトリ機能インターフェース
Definition: FactoryInterface.hpp:20