Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class handling application support for audio volume management. More...
#include <ApplicationVolumeHandling.h>
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 ReplayGainSettings & | GetReplayGainSettings () const |
bool | Load (const TiXmlNode *settings) |
bool | Save (TiXmlNode *settings) const |
bool | OnSettingChanged (const CSetting &setting) |
Public Member Functions inherited from IApplicationComponent | |
virtual | ~IApplicationComponent ()=default |
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 |
Class handling application support for audio volume management.
|
inline |
float CApplicationVolumeHandling::GetVolumePercent | ( | ) | const |
float CApplicationVolumeHandling::GetVolumeRatio | ( | ) | const |
bool CApplicationVolumeHandling::IsMuted | ( | ) | const |
|
inlineprotected |
bool CApplicationVolumeHandling::Load | ( | const TiXmlNode * | settings | ) |
|
protected |
bool CApplicationVolumeHandling::Save | ( | TiXmlNode * | settings | ) | const |
|
protected |
|
protected |
|
protected |
|
friend |
|
protected |
|
protected |
|
protected |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |