PROTOCOLS
Factory
Defined in fuchsia.ultrasound/factory.fidl
CreateCapturer
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.
Request
| Name | Type |
|---|---|
request |
server_end:fuchsia.media/AudioCapturer
|
Response
| Name | Type |
|---|---|
reference_clock |
handle<clock>
|
stream_type |
fuchsia.media/AudioStreamType
|
CreateRenderer
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.
Request
| Name | Type |
|---|---|
renderer |
server_end:fuchsia.media/AudioRenderer
|
Response
| Name | Type |
|---|---|
reference_clock |
handle<clock>
|
stream_type |
fuchsia.media/AudioStreamType
|