Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CGUIAudioManager Class Reference

#include <GUIAudioManager.h>

Inheritance diagram for CGUIAudioManager:
ISettingCallback

Public Member Functions

 CGUIAudioManager ()
 
 ~CGUIAudioManager () override
 
void OnSettingChanged (const std::shared_ptr< const CSetting > &setting) override
 The value of the given setting has changed.
 
bool OnSettingUpdate (const std::shared_ptr< CSetting > &setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) override
 The given setting needs to be updated.
 
void Initialize ()
 
void DeInitialize ()
 
bool Load ()
 
void UnLoad ()
 
void PlayActionSound (const CAction &action)
 
void PlayWindowSound (int id, WINDOW_SOUND event)
 
void PlayPythonSound (const std::string &strFileName, bool useCached=true)
 
void Enable (bool bEnable)
 
void SetVolume (float level)
 
void Stop ()
 
- Public Member Functions inherited from ISettingCallback
virtual ~ISettingCallback ()=default
 
virtual bool OnSettingChanging (const std::shared_ptr< const CSetting > &setting)
 The value of the given setting is being changed.
 
virtual void OnSettingAction (const std::shared_ptr< const CSetting > &setting)
 The given setting has been activated.
 
virtual void OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName)
 The given property of the given setting has changed.
 

Constructor & Destructor Documentation

◆ CGUIAudioManager()

CGUIAudioManager::CGUIAudioManager ( )

◆ ~CGUIAudioManager()

CGUIAudioManager::~CGUIAudioManager ( )
override

Member Function Documentation

◆ DeInitialize()

void CGUIAudioManager::DeInitialize ( )

◆ Enable()

void CGUIAudioManager::Enable ( bool bEnable)

◆ Initialize()

void CGUIAudioManager::Initialize ( )

◆ Load()

bool CGUIAudioManager::Load ( )

◆ OnSettingChanged()

void CGUIAudioManager::OnSettingChanged ( const std::shared_ptr< const CSetting > & setting)
overridevirtual

The value of the given setting has changed.

This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.

Parameters
settingThe setting whose value has been changed

Reimplemented from ISettingCallback.

◆ OnSettingUpdate()

bool CGUIAudioManager::OnSettingUpdate ( const std::shared_ptr< CSetting > & setting,
const char * oldSettingId,
const TiXmlNode * oldSettingNode )
overridevirtual

The given setting needs to be updated.

This callback is triggered when a setting needs to be updated because its value is outdated. This only happens when initially loading the value of a setting and will not be triggered afterwards.

Parameters
settingThe setting which needs to be updated.
oldSettingIdThe id of the previous setting.
oldSettingNodeThe old setting node
Returns
True if the setting has been successfully updated otherwise false

Reimplemented from ISettingCallback.

◆ PlayActionSound()

void CGUIAudioManager::PlayActionSound ( const CAction & action)

◆ PlayPythonSound()

void CGUIAudioManager::PlayPythonSound ( const std::string & strFileName,
bool useCached = true )

◆ PlayWindowSound()

void CGUIAudioManager::PlayWindowSound ( int id,
WINDOW_SOUND event )

◆ SetVolume()

void CGUIAudioManager::SetVolume ( float level)

◆ Stop()

void CGUIAudioManager::Stop ( )

◆ UnLoad()

void CGUIAudioManager::UnLoad ( )

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