class AudioAdmin
Defined at line 24 of file ../../src/media/audio/audio_core/audio_admin.h
Protected Members
thread_checker fidl_thread_checker_
Public Methods
void AudioAdmin (StreamVolumeManager * volume_manager, PolicyActionReporter * policy_action_reporter, ActivityDispatcher * activity_dispatcher, ActiveStreamCountReporter * active_stream_count_reporter, async_dispatcher_t * fidl_dispatcher, BehaviorGain behavior_gain)
Constructs an |AudioAdmin| from a |BehaviorGain| and |GainAdjustment|.
The |BehaviorGain| provides the target gain_db values to use when triggering behaviors between
usages, simply mapping each behavior to a relative gain value. The |GainAdjustment| is simply
an interface that this object will use to apply the target gain values in |BehaviorGain|.
If no parameter is provided for |BehaviorGain|, a default behavior will be used.
|gain_adjustment| must be non-null.
Defined at line 22 of file ../../src/media/audio/audio_core/audio_admin.cc
void SetInteraction (fuchsia::media::Usage2 active, fuchsia::media::Usage2 affected, fuchsia::media::Behavior behavior)
Sets the interaction behavior between |active| and |affected| usages.
Defined at line 39 of file ../../src/media/audio/audio_core/audio_admin.cc
void ResetInteractions ()
Clears all configured behaviors.
Defined at line 78 of file ../../src/media/audio/audio_core/audio_admin.h
void SetInteractionsFromAudioPolicy (AudioPolicy policy)
Clears all configured behaviors and then applies the rules in the provided AudioPolicy.
Defined at line 331 of file ../../src/media/audio/audio_core/audio_admin.cc
void UpdateRendererState (RenderUsage usage, bool active, fuchsia::media::AudioRenderer * renderer)
Interfaces used by AudioCoreImpl for active-stream accounting
Defined at line 253 of file ../../src/media/audio/audio_core/audio_admin.cc
void UpdateCapturerState (CaptureUsage usage, bool active, fuchsia::media::AudioCapturer * capturer)
Defined at line 280 of file ../../src/media/audio/audio_core/audio_admin.cc
bool IsActive (RenderUsage usage)
Defined at line 62 of file ../../src/media/audio/audio_core/audio_admin.cc
bool IsActive (CaptureUsage usage)
Defined at line 69 of file ../../src/media/audio/audio_core/audio_admin.cc
Protected Methods
std::unordered_set<fuchsia::media::AudioRenderer *> * active_streams_playback ()
Defined at line 100 of file ../../src/media/audio/audio_core/audio_admin.h
std::unordered_set<fuchsia::media::AudioCapturer *> * active_streams_capture ()
Defined at line 103 of file ../../src/media/audio/audio_core/audio_admin.h
async_dispatcher_t * fidl_dispatcher ()
Used to ensure we are on the thread where we constructed the class (should be the FIDL thread).
Defined at line 108 of file ../../src/media/audio/audio_core/audio_admin.h
Records
Friends
class Reporter