template <>

class NaturalSyncClientImpl

Defined at line 5320 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/cpp/fidl/fuchsia.media/cpp/natural_messaging.h

Public Methods

::fidl::Result< ::fuchsia_media::AudioCore::GetVolumeFromDb> GetVolumeFromDb (const ::fidl::Request< ::fuchsia_media::AudioCore::GetVolumeFromDb> & request)

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`.

::fidl::Result< ::fuchsia_media::AudioCore::GetVolumeFromDb2> GetVolumeFromDb2 (const ::fidl::Request< ::fuchsia_media::AudioCore::GetVolumeFromDb2> & request)

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`.

::fidl::Result< ::fuchsia_media::AudioCore::GetDbFromVolume> GetDbFromVolume (const ::fidl::Request< ::fuchsia_media::AudioCore::GetDbFromVolume> & request)

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`.

::fidl::Result< ::fuchsia_media::AudioCore::GetDbFromVolume2> GetDbFromVolume2 (const ::fidl::Request< ::fuchsia_media::AudioCore::GetDbFromVolume2> & request)

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`.

::fit::result< ::fidl::OneWayError> CreateAudioRenderer (::fidl::Request< ::fuchsia_media::AudioCore::CreateAudioRenderer> request)

Creates an AudioRenderer which outputs audio to the default device.

::fit::result< ::fidl::OneWayError> CreateAudioCapturerWithConfiguration (::fidl::Request< ::fuchsia_media::AudioCore::CreateAudioCapturerWithConfiguration> 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.

::fit::result< ::fidl::OneWayError> CreateAudioCapturer (::fidl::Request< ::fuchsia_media::AudioCore::CreateAudioCapturer> 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.

::fit::result< ::fidl::OneWayError> SetRenderUsageGain (const ::fidl::Request< ::fuchsia_media::AudioCore::SetRenderUsageGain> & request)

Sets the gain for this render usage. By default, all render usages are set to Unity (0 db).

::fit::result< ::fidl::OneWayError> SetRenderUsageGain2 (const ::fidl::Request< ::fuchsia_media::AudioCore::SetRenderUsageGain2> & request)

Sets the gain for this render usage. By default, all render usages are set to Unity (0 db).

::fit::result< ::fidl::OneWayError> SetCaptureUsageGain (const ::fidl::Request< ::fuchsia_media::AudioCore::SetCaptureUsageGain> & request)

Sets gain for this capture usage. By default, all capture usages are set to Unity (0 db).

::fit::result< ::fidl::OneWayError> SetCaptureUsageGain2 (const ::fidl::Request< ::fuchsia_media::AudioCore::SetCaptureUsageGain2> & request)

Sets gain for this capture usage. By default, all capture usages are set to Unity (0 db).

::fit::result< ::fidl::OneWayError> BindUsageVolumeControl (::fidl::Request< ::fuchsia_media::AudioCore::BindUsageVolumeControl> request)

Binds to a volume control protocol for the given usage.

::fit::result< ::fidl::OneWayError> BindUsageVolumeControl2 (::fidl::Request< ::fuchsia_media::AudioCore::BindUsageVolumeControl2> request)

Binds to a volume control protocol for the given usage.

::fit::result< ::fidl::OneWayError> SetInteraction (const ::fidl::Request< ::fuchsia_media::AudioCore::SetInteraction> & request)

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`.

::fit::result< ::fidl::OneWayError> SetInteraction2 (const ::fidl::Request< ::fuchsia_media::AudioCore::SetInteraction2> & request)

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`.

::fit::result< ::fidl::OneWayError> ResetInteractions ()

Re-initializes the set of rules that are currently governing the interaction of streams in

audio_core. The default behavior is 'NONE'.

::fit::result< ::fidl::OneWayError> LoadDefaults ()

Re-loads the platform policy configuration. Falls back to a default config if the platform

does not provide a config.