1 #ifndef ZEP_AUDIO_PCM_SINK_INTERFACE_HPP_ 2 #define ZEP_AUDIO_PCM_SINK_INTERFACE_HPP_ 8 #include <zep/audio/PcmBufferWriter.hpp> 10 #include "../SinkStreamInterface.hpp" 11 #include "../StreamInterface.hpp" 12 #include "PcmFormat.hpp" 17 class PcmSinkCallbackInterface;
64 const std::shared_ptr<PcmSinkCallbackInterface>& listener,
65 bool use_weak_ptr =
false) = 0;
76 std::unique_ptr<PcmSinkCallbackInterface>&& listener) = 0;
104 kFailedFormatNegotiation,
116 virtual bool OnRequestSinkFormat(
const PcmFormat& format) = 0;
130 virtual std::weak_ptr<PcmBufferPoolWriterInterface>
131 OnRequestPcmBufferPool() = 0;
139 #endif // ZEP_AUDIO_PCM_SINK_INTERFACE_HPP_ virtual bool GetDecidedFormat(PcmFormat &format) const noexcept=0
決定したフォーマットを取得する。
virtual void OnNotifySinkEvent(EventType type, const std::string &message)
エラーなどのイベントが発生した時に呼び出されるコールバック。
Definition: PcmSinkInterface.hpp:124
ZEP SDK用名前空間
Definition: FactoryInterface.hpp:10
エンドポイント側のストリーム機能インターフェース
Definition: StreamInterface.hpp:13
EventType
イベントの種類
Definition: PcmSinkInterface.hpp:90
シンク側ストリーム機能の共通コールバックインターフェース
Definition: SinkStreamInterface.hpp:17
PCMによる音声シンク機能インターフェース
Definition: PcmSinkInterface.hpp:22
シンク側ストリーム機能インターフェース
Definition: SinkStreamInterface.hpp:9
virtual void RegisterCallback(const std::shared_ptr< PcmSinkCallbackInterface > &listener, bool use_weak_ptr=false)=0
コールバックの送信先をshared_ptrまたはweak_ptrで登録する
virtual void SetAcceptableFormats(const std::vector< PcmFormat > &formats)=0
受信可能なフォーマット一覧を提示する。
ストリーム機能の共通コールバックインターフェース
Definition: StreamInterface.hpp:29
PCMによる音声シンク機能のコールバックインターフェース
Definition: PcmSinkInterface.hpp:84
virtual std::shared_future< PcmFormat > GetFormatDecisionStatus() const noexcept=0
フォーマット決定状態を取得するshared_futureを取得する。