class UsageGainReporter

Defined at line 24775 of file fidling/gen/sdk/fidl/fuchsia.media/fuchsia.media/hlcpp/fuchsia/media/cpp/fidl.h

A protocol for setting up watchers of usage gain.

Public Members

static const char[] Name_

Public Methods

void ~UsageGainReporter ()
void RegisterListener (::std::string device_unique_id, ::fuchsia::media::Usage usage, ::fidl::InterfaceHandle< ::fuchsia::media::UsageGainListener> usage_gain_listener)

Connects a listener to a stream of usage gain setting changes

for `usage` on the device identified by `device_token`. Usage

Gain is not set directly by any client; it is a translation of

the usage volume setting for each device, summed with active

muting/ducking gain adjustments.

Devices may map the same volume level to different dbfs, so

a `device_unique_id` is needed to identify the device.

`AudioDeviceEnumerator` provides programmatic access to devices

and their unique ids if it is necessary for a client to select

an id at runtime.

void RegisterListener2 (::std::string device_unique_id, ::fuchsia::media::Usage2 usage, ::fidl::InterfaceHandle< ::fuchsia::media::UsageGainListener> usage_gain_listener)

Connects a listener to a stream of usage gain setting changes

for `usage` on the device identified by `device_token`. Usage

Gain is not set directly by any client; it is a translation of

the usage volume setting for each device, summed with active

muting/ducking gain adjustments.

Devices may map the same volume level to different dbfs, so

a `device_unique_id` is needed to identify the device.

`AudioDeviceEnumerator` provides programmatic access to devices

and their unique ids if it is necessary for a client to select

an id at runtime.

Protected Methods

void handle_unknown_method (uint64_t ordinal, bool method_has_response)

Friends

class UsageGainReporter_Stub