pub struct FactoryProxy { /* private fields */ }Implementations§
Source§impl FactoryProxy
impl FactoryProxy
Sourcepub fn take_event_stream(&self) -> FactoryEventStream
pub fn take_event_stream(&self) -> FactoryEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn create_capturer(
&self,
request: ServerEnd<AudioCapturerMarker>,
) -> QueryResponseFut<(Clock, AudioStreamType), DefaultFuchsiaResourceDialect>
pub fn create_capturer( &self, request: ServerEnd<AudioCapturerMarker>, ) -> QueryResponseFut<(Clock, AudioStreamType), DefaultFuchsiaResourceDialect>
Creates a new fuchsia.media.AudioCapturer that is capable of capturing audio in
the ultrasonic frequency range.
The capturer will be suitible for capturing audio at ultrasound frequencies. The
channelization and sample rate of the capturer will be fixed to whatever the underlying
device is configured for. The fuchsia.media.AudioSampleFormat will be FLOAT.
See fuchsia.media.AudioCore for more information on the operation of a
fuchsia.media.AudioCapturer, with the following differences:
-
SetUsageis disallowed. Ultrasound capturers do not have an associatedfuchsia.media.AudioCaptureUsage. -
BindGainControlis disallowed. Ultrasound capturers will always have unity gain. -
SetPcmStreamTypeis disallowed. The stream type of an ultrasound capturer is not configurable, but instead returned fromCreateCapturer. -
SetReferenceClockis disallowed. The reference clock of an ultrasound capturer is not configurable, but instead returned fromCreateCapturer.
Sourcepub fn create_renderer(
&self,
renderer: ServerEnd<AudioRendererMarker>,
) -> QueryResponseFut<(Clock, AudioStreamType), DefaultFuchsiaResourceDialect>
pub fn create_renderer( &self, renderer: ServerEnd<AudioRendererMarker>, ) -> QueryResponseFut<(Clock, AudioStreamType), DefaultFuchsiaResourceDialect>
Creates a new fuchsia.media.AudioRenderer that is capable of producing audio in
the ultrasonic frequency range.
The renderer will be suitible for producing audio at ultrasound frequencies. The
channelization and sample rate of the renderer will be fixed to whatever the underlying
device is configured for. The fuchsia.media.AudioSampleFormat will be FLOAT.
See fuchsia.media.AudioCore for more information on the operation of a
fuchsia.media.AudioRenderer, with the following differences:
-
SetUsageis disallowed. Ultrasound renderers do not have an associatedfuchsia.media.AudioRenderUsage2. -
BindGainControlis disallowed. Ultrasound renderers will always have unity gain. -
SetPcmStreamTypeis disallowed. The stream type of an ultrasound renderer is not configurable, but instead returned fromCreateRenderer. -
SetReferenceClockis disallowed. The reference clock of an ultrasound renderer is not configurable, but instead returned fromCreateRenderer.
Trait Implementations§
Source§impl Clone for FactoryProxy
impl Clone for FactoryProxy
Source§fn clone(&self) -> FactoryProxy
fn clone(&self) -> FactoryProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FactoryProxy
impl Debug for FactoryProxy
Source§impl FactoryProxyInterface for FactoryProxy
impl FactoryProxyInterface for FactoryProxy
type CreateCapturerResponseFut = QueryResponseFut<(Clock, AudioStreamType)>
type CreateRendererResponseFut = QueryResponseFut<(Clock, AudioStreamType)>
fn create_capturer( &self, request: ServerEnd<AudioCapturerMarker>, ) -> Self::CreateCapturerResponseFut
fn create_renderer( &self, renderer: ServerEnd<AudioRendererMarker>, ) -> Self::CreateRendererResponseFut
Source§impl Proxy for FactoryProxy
impl Proxy for FactoryProxy
Source§type Protocol = FactoryMarker
type Protocol = FactoryMarker
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Source§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§fn on_closed(&self) -> OnSignals<'_, Unowned<'_, NullableHandle>>
fn on_closed(&self) -> OnSignals<'_, Unowned<'_, NullableHandle>>
PEER_CLOSED signal.