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:
-
SetUsage
is disallowed. Ultrasound capturers do not have an associatedfuchsia.media.AudioCaptureUsage
. -
BindGainControl
is disallowed. Ultrasound capturers will always have unity gain. -
SetPcmStreamType
is disallowed. The stream type of an ultrasound capturer is not configurable, but instead returned fromCreateCapturer
. -
SetReferenceClock
is 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:
-
SetUsage
is disallowed. Ultrasound renderers do not have an associatedfuchsia.media.AudioRenderUsage
. -
BindGainControl
is disallowed. Ultrasound renderers will always have unity gain. -
SetPcmStreamType
is disallowed. The stream type of an ultrasound renderer is not configurable, but instead returned fromCreateRenderer
. -
SetReferenceClock
is 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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for FactoryProxy
impl !RefUnwindSafe for FactoryProxy
impl Send for FactoryProxy
impl Sync for FactoryProxy
impl Unpin for FactoryProxy
impl !UnwindSafe for FactoryProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)