fidl_fuchsia_media

Trait 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>;
}

Required Associated Types§

Source

type SendPacketResponseFut: Future<Output = Result<(), Error>> + Send

Source

type DiscardAllPacketsResponseFut: Future<Output = Result<(), Error>> + Send

Source

type GetReferenceClockResponseFut: Future<Output = Result<Clock, Error>> + Send

Source

type GetMinLeadTimeResponseFut: Future<Output = Result<i64, Error>> + Send

Source

type PlayResponseFut: Future<Output = Result<(i64, i64), Error>> + Send

Source

type PauseResponseFut: Future<Output = Result<(i64, i64), Error>> + Send

Required Methods§

Source

fn add_payload_buffer(&self, id: u32, payload_buffer: Vmo) -> Result<(), Error>

Source

fn remove_payload_buffer(&self, id: u32) -> Result<(), Error>

Source

fn send_packet(&self, packet: &StreamPacket) -> Self::SendPacketResponseFut

Source

fn send_packet_no_reply(&self, packet: &StreamPacket) -> Result<(), Error>

Source

fn end_of_stream(&self) -> Result<(), Error>

Source

fn discard_all_packets(&self) -> Self::DiscardAllPacketsResponseFut

Source

fn discard_all_packets_no_reply(&self) -> Result<(), Error>

Source

fn bind_gain_control( &self, gain_control_request: ServerEnd<GainControlMarker>, ) -> Result<(), Error>

Source

fn set_pts_units( &self, tick_per_second_numerator: u32, tick_per_second_denominator: u32, ) -> Result<(), Error>

Source

fn set_pts_continuity_threshold( &self, threshold_seconds: f32, ) -> Result<(), Error>

Source

fn get_reference_clock(&self) -> Self::GetReferenceClockResponseFut

Source

fn set_reference_clock( &self, reference_clock: Option<Clock>, ) -> Result<(), Error>

Source

fn set_usage(&self, usage: AudioRenderUsage) -> Result<(), Error>

Source

fn set_pcm_stream_type(&self, type_: &AudioStreamType) -> Result<(), Error>

Source

fn enable_min_lead_time_events(&self, enabled: bool) -> Result<(), Error>

Source

fn get_min_lead_time(&self) -> Self::GetMinLeadTimeResponseFut

Source

fn play(&self, reference_time: i64, media_time: i64) -> Self::PlayResponseFut

Source

fn play_no_reply( &self, reference_time: i64, media_time: i64, ) -> Result<(), Error>

Source

fn pause(&self) -> Self::PauseResponseFut

Source

fn pause_no_reply(&self) -> Result<(), Error>

Implementors§

Source§

impl AudioRendererProxyInterface for AudioRendererProxy

Source§

type SendPacketResponseFut = QueryResponseFut<()>

Source§

type DiscardAllPacketsResponseFut = QueryResponseFut<()>

Source§

type GetReferenceClockResponseFut = QueryResponseFut<Clock>

Source§

type GetMinLeadTimeResponseFut = QueryResponseFut<i64>

Source§

type PlayResponseFut = QueryResponseFut<(i64, i64)>

Source§

type PauseResponseFut = QueryResponseFut<(i64, i64)>