class AudioCore
Defined at line 22978 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/hlcpp/fuchsia/media/cpp/fidl.h
Public Members
static const char[] Name_
Public Methods
void ~AudioCore ()
void CreateAudioRenderer (::fidl::InterfaceRequest< ::fuchsia::media::AudioRenderer> audio_out_request)
Creates an AudioRenderer which outputs audio to the default device.
void CreateAudioCapturerWithConfiguration (::fuchsia::media::AudioStreamType stream_type, ::fuchsia::media::AudioCapturerConfiguration configuration, ::fidl::InterfaceRequest< ::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.
void CreateAudioCapturer (bool loopback, ::fidl::InterfaceRequest< ::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.
void SetRenderUsageGain (::fuchsia::media::AudioRenderUsage usage, float gain_db)
Sets the gain for this render usage. By default, all render usages are set to Unity (0 db).
void SetRenderUsageGain2 (::fuchsia::media::AudioRenderUsage2 usage, float gain_db)
Sets the gain for this render usage. By default, all render usages are set to Unity (0 db).
void SetCaptureUsageGain (::fuchsia::media::AudioCaptureUsage usage, float gain_db)
Sets gain for this capture usage. By default, all capture usages are set to Unity (0 db).
void SetCaptureUsageGain2 (::fuchsia::media::AudioCaptureUsage2 usage, float gain_db)
Sets gain for this capture usage. By default, all capture usages are set to Unity (0 db).
void BindUsageVolumeControl (::fuchsia::media::Usage usage, ::fidl::InterfaceRequest< ::fuchsia::media::audio::VolumeControl> volume_control)
Binds to a volume control protocol for the given usage.
void BindUsageVolumeControl2 (::fuchsia::media::Usage2 usage, ::fidl::InterfaceRequest< ::fuchsia::media::audio::VolumeControl> volume_control)
Binds to a volume control protocol for the given usage.
void GetVolumeFromDb (::fuchsia::media::Usage usage, float gain_db, GetVolumeFromDbCallback callback)
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`.
void GetVolumeFromDb2 (::fuchsia::media::Usage2 usage, float gain_db, GetVolumeFromDb2Callback callback)
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`.
void GetDbFromVolume (::fuchsia::media::Usage usage, float volume, GetDbFromVolumeCallback callback)
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`.
void GetDbFromVolume2 (::fuchsia::media::Usage2 usage, float volume, GetDbFromVolume2Callback callback)
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`.
void SetInteraction (::fuchsia::media::Usage active, ::fuchsia::media::Usage affected, ::fuchsia::media::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`.
void SetInteraction2 (::fuchsia::media::Usage2 active, ::fuchsia::media::Usage2 affected, ::fuchsia::media::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`.
void ResetInteractions ()
Re-initializes the set of rules that are currently governing the interaction of streams in
audio_core. The default behavior is 'NONE'.
void LoadDefaults ()
Re-loads the platform policy configuration. Falls back to a default config if the platform
does not provide a config.
Protected Methods
void handle_unknown_method (uint64_t ordinal, bool method_has_response)
Friends
class AudioCore_Stub