fidl_fuchsia_mediaTrait AudioRendererProxyInterface
Source pub trait AudioRendererProxyInterface: Send + Sync {
type SendPacketResponseFut: Future<Output = Result<(), Error>> + Send;
type DiscardAllPacketsResponseFut: Future<Output = Result<(), Error>> + Send;
type GetReferenceClockResponseFut: Future<Output = Result<Clock, Error>> + Send;
type GetMinLeadTimeResponseFut: Future<Output = Result<i64, Error>> + Send;
type PlayResponseFut: Future<Output = Result<(i64, i64), Error>> + Send;
type PauseResponseFut: Future<Output = Result<(i64, i64), Error>> + Send;
Show 20 methods
// Required methods
fn add_payload_buffer(
&self,
id: u32,
payload_buffer: Vmo,
) -> Result<(), Error>;
fn remove_payload_buffer(&self, id: u32) -> Result<(), Error>;
fn send_packet(&self, packet: &StreamPacket) -> Self::SendPacketResponseFut;
fn send_packet_no_reply(&self, packet: &StreamPacket) -> Result<(), Error>;
fn end_of_stream(&self) -> Result<(), Error>;
fn discard_all_packets(&self) -> Self::DiscardAllPacketsResponseFut;
fn discard_all_packets_no_reply(&self) -> Result<(), Error>;
fn bind_gain_control(
&self,
gain_control_request: ServerEnd<GainControlMarker>,
) -> Result<(), Error>;
fn set_pts_units(
&self,
tick_per_second_numerator: u32,
tick_per_second_denominator: u32,
) -> Result<(), Error>;
fn set_pts_continuity_threshold(
&self,
threshold_seconds: f32,
) -> Result<(), Error>;
fn get_reference_clock(&self) -> Self::GetReferenceClockResponseFut;
fn set_reference_clock(
&self,
reference_clock: Option<Clock>,
) -> Result<(), Error>;
fn set_usage(&self, usage: AudioRenderUsage) -> Result<(), Error>;
fn set_pcm_stream_type(&self, type_: &AudioStreamType) -> Result<(), Error>;
fn enable_min_lead_time_events(&self, enabled: bool) -> Result<(), Error>;
fn get_min_lead_time(&self) -> Self::GetMinLeadTimeResponseFut;
fn play(
&self,
reference_time: i64,
media_time: i64,
) -> Self::PlayResponseFut;
fn play_no_reply(
&self,
reference_time: i64,
media_time: i64,
) -> Result<(), Error>;
fn pause(&self) -> Self::PauseResponseFut;
fn pause_no_reply(&self) -> Result<(), Error>;
}