template <>
class WireSyncClientImpl
Defined at line 2955 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::AudioDeviceEnumerator>|,
avoiding setting up a client.
Public Methods
::fidl::WireResult< ::fuchsia_media::AudioDeviceEnumerator::GetDevices> GetDevices ()
Obtain the list of currently active audio devices.
Allocates 16 bytes of request buffer on the stack. Response is heap-allocated.
::fidl::WireResult< ::fuchsia_media::AudioDeviceEnumerator::GetDeviceGain> GetDeviceGain (uint64_t device_token)
Gain/Mute/AGC control
Note that each of these operations requires a device_token in order to
target the proper input/output.
The Get command returns the device_token of the device whose gain is
being reported, or `ZX_KOID_INVALID` in the case that the requested
device_token was invalid or the device had been removed from the system
before the Get command could be processed.
Set commands which are given an invalid device token are ignored and
have no effect on the system. In addition, users do not need to control
all of the gain settings for an audio device with each call. Only the
settings with a corresponding flag set in the set_flags parameter will
be affected. For example, passing SetAudioGainFlag_MuteValid will cause
a SetDeviceGain call to care only about the mute setting in the
gain_info structure, while passing (SetAudioGainFlag_GainValid |
SetAudioGainFlag_MuteValid) will cause both the mute and the gain
status to be changed simultaneously.
Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus SetDeviceGain (uint64_t device_token, const ::fuchsia_media::wire::AudioGainInfo & gain_info, ::fuchsia_media::wire::AudioGainValidFlags valid_flags)
Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.
::fidl::OneWayStatus AddDeviceByChannel (::fidl::StringView device_name, bool is_input, ::fidl::ClientEnd< ::fuchsia_hardware_audio::StreamConfig> && channel)
# Deprecation
StreamConfig is not supported anymore, instead use an
[Audio Composite](https://fuchsia.dev/fuchsia-src/development/audio/drivers/composite)
, see
[Audio Drivers Architecture](https://fuchsia.dev/fuchsia-src/development/audio/drivers/architecture)
Allocates 312 bytes of message buffer on the stack. No heap allocation necessary.