template <>
class WireSyncClientImpl
Defined at line 11892 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/wire_messaging.h
Methods to make a sync FIDL call directly on an unowned handle or a
const reference to a |::fidl::ClientEnd
<
::fuchsia_media::AudioCore>|,
avoiding setting up a client.
Public Methods
::fidl::OneWayStatus CreateAudioRenderer (::fidl::ServerEnd< ::fuchsia_media::AudioRenderer> && audio_out_request)
Creates an AudioRenderer which outputs audio to the default device.
Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus CreateAudioCapturerWithConfiguration (const ::fuchsia_media::wire::AudioStreamType & stream_type, ::fuchsia_media::wire::AudioCapturerConfiguration configuration, ::fidl::ServerEnd< ::fuchsia_media::AudioCapturer> && audio_capturer_request)
Creates an AudioCapturer according to the given requirements.
`pcm_stream_type` sets the stream type of the stream to be delivered.
It causes the source material to be reformatted/resampled if needed
in order to produce the requested stream type.
`usage` is used by Fuchsia to make decisions about user experience.
See `AudioCaptureUsage` for more details.
`configuration` must be initialized to a variant, or no capturer
can be created.
Allocates 104 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus CreateAudioCapturer (bool loopback, ::fidl::ServerEnd< ::fuchsia_media::AudioCapturer> && audio_in_request)
Creates an AudioCapturer which either captures from the current default
audio input device, or loops-back from the current default audio output
device based on value passed for the loopback flag.
Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus SetRenderUsageGain (::fuchsia_media::wire::AudioRenderUsage usage, float gain_db)
Sets the gain for this render usage. By default, all render usages are set to Unity (0 db).
Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus SetRenderUsageGain2 (::fuchsia_media::wire::AudioRenderUsage2 usage, float gain_db)
Sets the gain for this render usage. By default, all render usages are set to Unity (0 db).
Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus SetCaptureUsageGain (::fuchsia_media::wire::AudioCaptureUsage usage, float gain_db)
Sets gain for this capture usage. By default, all capture usages are set to Unity (0 db).
Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus SetCaptureUsageGain2 (::fuchsia_media::wire::AudioCaptureUsage2 usage, float gain_db)
Sets gain for this capture usage. By default, all capture usages are set to Unity (0 db).
Allocates 40 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus BindUsageVolumeControl (::fuchsia_media::wire::Usage usage, ::fidl::ServerEnd< ::fuchsia_media_audio::VolumeControl> && volume_control)
Binds to a volume control protocol for the given usage.
Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus BindUsageVolumeControl2 (::fuchsia_media::wire::Usage2 usage, ::fidl::ServerEnd< ::fuchsia_media_audio::VolumeControl> && volume_control)
Binds to a volume control protocol for the given usage.
Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_media::AudioCore::GetVolumeFromDb> GetVolumeFromDb (::fuchsia_media::wire::Usage usage, float gain_db)
Queries the volume percentage [0, 1] that maps to a `gain_db` value for a particular
`usage`. This is the same mapping as used by the VolumeControl from
`BindUsageVolumeControl`.
Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_media::AudioCore::GetVolumeFromDb2> GetVolumeFromDb2 (::fuchsia_media::wire::Usage2 usage, float gain_db)
Queries the volume percentage [0, 1] that maps to a `gain_db` value for a particular
`usage`. This is the same mapping as used by the VolumeControl from
`BindUsageVolumeControl`.
Allocates 72 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_media::AudioCore::GetDbFromVolume> GetDbFromVolume (::fuchsia_media::wire::Usage usage, float volume)
Queries the decibel value that maps to a volume percentage [0, 1] for a particular `usage`.
This is the same mapping as used by the VolumeControl from `BindUsageVolumeControl`.
Allocates 64 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::WireResult< ::fuchsia_media::AudioCore::GetDbFromVolume2> GetDbFromVolume2 (::fuchsia_media::wire::Usage2 usage, float volume)
Queries the decibel value that maps to a volume percentage [0, 1] for a particular `usage`.
This is the same mapping as used by the VolumeControl from `BindUsageVolumeControl`.
Allocates 72 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus SetInteraction (::fuchsia_media::wire::Usage active, ::fuchsia_media::wire::Usage affected, ::fuchsia_media::wire::Behavior behavior)
Sets how audio_core handles interactions of multiple active streams simultaneously. If
streams of Usage `active` are processing audio, and streams of Usage `affected` are as well,
the Behavior specified will be applied to the streams of Usage `affected`.
Allocates 72 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus SetInteraction2 (::fuchsia_media::wire::Usage2 active, ::fuchsia_media::wire::Usage2 affected, ::fuchsia_media::wire::Behavior behavior)
Sets how audio_core handles interactions of multiple active streams simultaneously. If
streams of Usage `active` are processing audio, and streams of Usage `affected` are as well,
the Behavior specified will be applied to the streams of Usage `affected`.
Allocates 72 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus ResetInteractions ()
Re-initializes the set of rules that are currently governing the interaction of streams in
audio_core. The default behavior is 'NONE'.
Allocates 32 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus LoadDefaults ()
Re-loads the platform policy configuration. Falls back to a default config if the platform
does not provide a config.
Allocates 32 bytes of message buffer on the stack. No heap allocation necessary.