xbmc
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
CApplicationVolumeHandling Class Reference

Class handling application support for audio volume management. More...

#include <ApplicationVolumeHandling.h>

Inheritance diagram for CApplicationVolumeHandling:
Inheritance graph
[legend]
Collaboration diagram for CApplicationVolumeHandling:
Collaboration graph
[legend]

Classes

struct  ReplayGainSettings
 

Public Member Functions

float GetVolumePercent () const
 
float GetVolumeRatio () const
 
bool IsMuted () const
 
void SetVolume (float iValue, bool isPercentage=true)
 
void SetMute (bool mute)
 
void ToggleMute (void)
 
const ReplayGainSettingsGetReplayGainSettings () const
 
bool Load (const TiXmlNode *settings)
 
bool Save (TiXmlNode *settings) const
 
bool OnSettingChanged (const CSetting &setting)
 

Static Public Attributes

static constexpr float VOLUME_MINIMUM = 0.0f
 
static constexpr float VOLUME_MAXIMUM = 1.0f
 
static constexpr float VOLUME_DYNAMIC_RANGE = 90.0f
 

Protected Member Functions

bool IsMutedInternal () const
 
void ShowVolumeBar (const CAction *action=nullptr)
 
void CacheReplayGainSettings (const CSettings &settings)
 
void Mute ()
 
void UnMute ()
 
void SetHardwareVolume (float hardwareVolume)
 
void VolumeChanged ()
 

Protected Attributes

bool m_muted = false
 
float m_volumeLevel = VOLUME_MAXIMUM
 
ReplayGainSettings m_replayGainSettings
 

Friends

class CApplication
 

Detailed Description

Class handling application support for audio volume management.


The documentation for this class was generated from the following files: