MythTV  master
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
VolumeBase Class Referenceabstract

#include <volumebase.h>

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

Public Member Functions

 VolumeBase ()
 
virtual ~VolumeBase ()=default
 
void SWVolume (bool set)
 
bool SWVolume (void) const
 
virtual uint GetCurrentVolume (void) const
 
virtual void SetCurrentVolume (int value)
 
virtual void AdjustCurrentVolume (int change)
 
virtual void ToggleMute (void)
 
virtual MuteState GetMuteState (void) const
 
virtual MuteState SetMuteState (MuteState)
 

Static Public Member Functions

static MuteState NextMuteState (MuteState)
 

Protected Member Functions

virtual int GetVolumeChannel (int channel) const =0
 
virtual void SetVolumeChannel (int channel, int volume)=0
 
virtual void SetSWVolume (int new_volume, bool save)=0
 
virtual int GetSWVolume (void)=0
 
void UpdateVolume (void)
 
void SyncVolume (void)
 
void SetChannels (int new_channels)
 

Protected Attributes

bool m_internalVol {false}
 

Private Attributes

int m_volume {80}
 
MuteState m_currentMuteState {kMuteOff}
 
bool m_swvol {false}
 
bool m_swvolSetting {false}
 
int m_channels {0}
 

Detailed Description

Definition at line 13 of file volumebase.h.

Constructor & Destructor Documentation

◆ VolumeBase()

VolumeBase::VolumeBase ( )

Definition at line 99 of file volumebase.cpp.

◆ ~VolumeBase()

virtual VolumeBase::~VolumeBase ( )
virtualdefault

Member Function Documentation

◆ SWVolume() [1/2]

void VolumeBase::SWVolume ( bool  set)

Definition at line 111 of file volumebase.cpp.

◆ SWVolume() [2/2]

bool VolumeBase::SWVolume ( void  ) const

◆ GetCurrentVolume()

uint VolumeBase::GetCurrentVolume ( void  ) const
virtual

◆ SetCurrentVolume()

void VolumeBase::SetCurrentVolume ( int  value)
virtual

◆ AdjustCurrentVolume()

void VolumeBase::AdjustCurrentVolume ( int  change)
virtual

Reimplemented in AudioReencodeBuffer.

Definition at line 132 of file volumebase.cpp.

Referenced by AudioPlayer::AdjustVolume(), MusicPlayer::decVolume(), and MusicPlayer::incVolume().

◆ ToggleMute()

void VolumeBase::ToggleMute ( void  )
virtual

Reimplemented in AudioReencodeBuffer.

Definition at line 144 of file volumebase.cpp.

Referenced by MusicPlayer::toggleMute().

◆ GetMuteState()

MuteState VolumeBase::GetMuteState ( void  ) const
virtual

◆ SetMuteState()

MuteState VolumeBase::SetMuteState ( MuteState  mstate)
virtual

Definition at line 137 of file volumebase.cpp.

Referenced by AudioPlayer::SetMuteState(), and ToggleMute().

◆ NextMuteState()

MuteState VolumeBase::NextMuteState ( MuteState  cur)
static

Definition at line 155 of file volumebase.cpp.

Referenced by AudioPlayer::IncrMuteState().

◆ GetVolumeChannel()

virtual int VolumeBase::GetVolumeChannel ( int  channel) const
protectedpure virtual

◆ SetVolumeChannel()

virtual void VolumeBase::SetVolumeChannel ( int  channel,
int  volume 
)
protectedpure virtual

◆ SetSWVolume()

virtual void VolumeBase::SetSWVolume ( int  new_volume,
bool  save 
)
protectedpure virtual

Implemented in AudioReencodeBuffer, and AudioOutputBase.

Referenced by UpdateVolume().

◆ GetSWVolume()

virtual int VolumeBase::GetSWVolume ( void  )
protectedpure virtual

Implemented in AudioOutputBase, and AudioReencodeBuffer.

Referenced by SyncVolume().

◆ UpdateVolume()

void VolumeBase::UpdateVolume ( void  )
protected

Definition at line 178 of file volumebase.cpp.

Referenced by AudioOutputBase::Reconfigure(), SetCurrentVolume(), and SetMuteState().

◆ SyncVolume()

void VolumeBase::SyncVolume ( void  )
protected

Definition at line 209 of file volumebase.cpp.

Referenced by AudioOutputBase::Reconfigure().

◆ SetChannels()

void VolumeBase::SetChannels ( int  new_channels)
protected

Definition at line 218 of file volumebase.cpp.

Referenced by AudioOutputBase::Reconfigure().

Member Data Documentation

◆ m_internalVol

bool VolumeBase::m_internalVol {false}
protected

◆ m_volume

int VolumeBase::m_volume {80}
private

◆ m_currentMuteState

MuteState VolumeBase::m_currentMuteState {kMuteOff}
private

Definition at line 46 of file volumebase.h.

Referenced by GetMuteState(), SetMuteState(), and UpdateVolume().

◆ m_swvol

bool VolumeBase::m_swvol {false}
private

Definition at line 47 of file volumebase.h.

Referenced by SWVolume(), SyncVolume(), UpdateVolume(), and VolumeBase().

◆ m_swvolSetting

bool VolumeBase::m_swvolSetting {false}
private

Definition at line 48 of file volumebase.h.

Referenced by SWVolume(), and VolumeBase().

◆ m_channels

int VolumeBase::m_channels {0}
private

Definition at line 49 of file volumebase.h.

Referenced by SetChannels(), and UpdateVolume().


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