fidl_fuchsia_mediaTrait AudioCapturerProxyInterface
Source pub trait AudioCapturerProxyInterface: Send + Sync {
type DiscardAllPacketsResponseFut: Future<Output = Result<(), Error>> + Send;
type CaptureAtResponseFut: Future<Output = Result<StreamPacket, Error>> + Send;
type StopAsyncCaptureResponseFut: Future<Output = Result<(), Error>> + Send;
type GetReferenceClockResponseFut: Future<Output = Result<Clock, Error>> + Send;
type GetStreamTypeResponseFut: Future<Output = Result<StreamType, Error>> + Send;
Show 15 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 release_packet(&self, packet: &StreamPacket) -> Result<(), Error>;
fn discard_all_packets(&self) -> Self::DiscardAllPacketsResponseFut;
fn discard_all_packets_no_reply(&self) -> Result<(), Error>;
fn set_pcm_stream_type(
&self,
stream_type: &AudioStreamType,
) -> Result<(), Error>;
fn capture_at(
&self,
payload_buffer_id: u32,
payload_offset: u32,
frames: u32,
) -> Self::CaptureAtResponseFut;
fn start_async_capture(&self, frames_per_packet: u32) -> Result<(), Error>;
fn stop_async_capture(&self) -> Self::StopAsyncCaptureResponseFut;
fn stop_async_capture_no_reply(&self) -> Result<(), Error>;
fn bind_gain_control(
&self,
gain_control_request: ServerEnd<GainControlMarker>,
) -> 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: AudioCaptureUsage) -> Result<(), Error>;
fn get_stream_type(&self) -> Self::GetStreamTypeResponseFut;
}