1#ifndef ZAO_ENDPOINT_AUDIO_PCM_SINK_INTERFACE_HPP_
2#define ZAO_ENDPOINT_AUDIO_PCM_SINK_INTERFACE_HPP_
9#include "../SinkStreamInterface.hpp"
10#include "../StreamInterface.hpp"
11#include "PcmBufferWriter.hpp"
12#include "PcmFormat.hpp"
18class PcmSinkCallbackInterface;
67 bool use_weak_ptr = false) = 0;
107 kFailedFormatNegotiation,
133 virtual std::weak_ptr<PcmBufferPoolWriterInterface>
シンク側ストリーム機能の共通コールバックインターフェース
Definition SinkStreamInterface.hpp:18
シンク側ストリーム機能インターフェース
Definition SinkStreamInterface.hpp:10
ストリーム機能の共通コールバックインターフェース
Definition StreamInterface.hpp:30
エンドポイント側のストリーム機能インターフェース
Definition StreamInterface.hpp:14
PCMによる音声シンク機能のコールバックインターフェース
Definition PcmSinkInterface.hpp:88
virtual std::weak_ptr< PcmBufferPoolWriterInterface > OnRequestPcmBufferPool()=0
PCMバッファプールの書き込み側を要求するコールバック。
EventType
イベントの種類
Definition PcmSinkInterface.hpp:93
virtual void OnNotifySinkEvent(EventType type, const std::string &message)
エラーなどのイベントが発生した時に呼び出されるコールバック。
Definition PcmSinkInterface.hpp:127
virtual bool OnRequestSinkFormat(const PcmFormat &format)=0
フォーマット決定要求時に呼び出されるコールバック。
PCMによる音声シンク機能インターフェース
Definition PcmSinkInterface.hpp:23
virtual std::shared_future< PcmFormat > GetFormatDecisionStatus() const noexcept=0
フォーマット決定状態を取得するshared_futureを取得する。
virtual bool GetDecidedFormat(PcmFormat &format) const noexcept=0
決定したフォーマットを取得する。
virtual void SetAcceptableFormats(const std::vector< PcmFormat > &formats)=0
受信可能なフォーマット一覧を提示する。
virtual void RegisterCallback(const std::shared_ptr< PcmSinkCallbackInterface > &listener, bool use_weak_ptr=false)=0
コールバックの送信先をshared_ptrまたはweak_ptrで登録する
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11