10#ifndef ZEP_AUDIO_PCM_SINK_INTERFACE_HPP_
11#define ZEP_AUDIO_PCM_SINK_INTERFACE_HPP_
17#include <zep/audio/PcmBufferWriter.hpp>
19#include "../SinkStreamInterface.hpp"
20#include "../StreamInterface.hpp"
21#include "PcmFormat.hpp"
26class PcmSinkCallbackInterface;
72 virtual
void RegisterCallback(
74 bool use_weak_ptr = false) = 0;
84 virtual
void RegisterCallback(
113 kFailedFormatNegotiation,
139 virtual std::weak_ptr<PcmBufferPoolWriterInterface>
Common callback interface for sink-side stream functions.
Definition SinkStreamInterface.hpp:26
Sink-side stream function interface.
Definition SinkStreamInterface.hpp:18
Common callback interface for stream functions.
Definition StreamInterface.hpp:38
Stream function interface on the endpoint side.
Definition StreamInterface.hpp:22
PCMによる音声シンク機能のコールバックインターフェース
Definition PcmSinkInterface.hpp:94
virtual void OnNotifySinkEvent(EventType type, const std::string &message)
エラーなどのイベントが発生した時に呼び出されるコールバック。
Definition PcmSinkInterface.hpp:133
EventType
イベントの種類
Definition PcmSinkInterface.hpp:99
virtual std::weak_ptr< PcmBufferPoolWriterInterface > OnRequestPcmBufferPool()=0
PCMバッファプールの書き込み側を要求するコールバック。
virtual bool OnRequestSinkFormat(const PcmFormat &format)=0
フォーマット決定要求時に呼び出されるコールバック。
PCMによる音声シンク機能インターフェース
Definition PcmSinkInterface.hpp:31
virtual void SetAcceptableFormats(const std::vector< PcmFormat > &formats)=0
受信可能なフォーマット一覧を提示する。
virtual bool GetDecidedFormat(PcmFormat &format) const noexcept=0
決定したフォーマットを取得する。
virtual std::shared_future< PcmFormat > GetFormatDecisionStatus() const noexcept=0
フォーマット決定状態を取得するshared_futureを取得する。
Namespace for ZEP SDK.
Definition FactoryInterface.hpp:19