11 #include "application/IApplicationComponent.h" 37 float GetVolumePercent()
const;
38 float GetVolumeRatio()
const;
41 void SetVolume(
float iValue,
bool isPercentage =
true);
42 void SetMute(
bool mute);
43 void ToggleMute(
void);
45 const ReplayGainSettings& GetReplayGainSettings()
const {
return m_replayGainSettings; }
47 static constexpr
float VOLUME_MINIMUM = 0.0f;
48 static constexpr
float VOLUME_MAXIMUM = 1.0f;
49 static constexpr
float VOLUME_DYNAMIC_RANGE = 90.0f;
51 bool Load(
const TiXmlNode*
settings);
52 bool Save(TiXmlNode* settings)
const;
53 bool OnSettingChanged(
const CSetting& setting);
56 bool IsMutedInternal()
const {
return m_muted; }
57 void ShowVolumeBar(
const CAction* action =
nullptr);
59 void CacheReplayGainSettings(
const CSettings& settings);
64 void SetHardwareVolume(
float hardwareVolume);
69 float m_volumeLevel = VOLUME_MAXIMUM;
Class handling application support for audio volume management.
Definition: ApplicationVolumeHandling.h:22
Wrapper around CSettingsManager responsible for properly setting up the settings manager and register...
Definition: Settings.h:27
Setting base class containing all the properties which are common to all settings independent of the ...
Definition: Setting.h:46
Definition: Application.h:82
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
Base class for application components.
Definition: IApplicationComponent.h:12
Definition: settings.py:1
Definition: ApplicationVolumeHandling.h:29