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]

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 internal_vol {false}
 

Private Attributes

int m_volume {80}
 
MuteState m_current_mute_state {kMuteOff}
 
bool m_swvol {false}
 
bool m_swvol_setting {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().

◆ 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 AudioOutputBase, and AudioReencodeBuffer.

◆ GetSWVolume()

virtual int VolumeBase::GetSWVolume ( void  )
protectedpure virtual

Implemented in AudioOutputBase, and AudioReencodeBuffer.

◆ UpdateVolume()

void VolumeBase::UpdateVolume ( void  )
protected

Definition at line 178 of file volumebase.cpp.

Referenced by AudioOutputBase::Reconfigure().

◆ 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

◆ internal_vol

bool VolumeBase::internal_vol {false}
protected

◆ m_volume

int VolumeBase::m_volume {80}
private

Definition at line 45 of file volumebase.h.

◆ m_current_mute_state

MuteState VolumeBase::m_current_mute_state {kMuteOff}
private

Definition at line 46 of file volumebase.h.

◆ m_swvol

bool VolumeBase::m_swvol {false}
private

Definition at line 47 of file volumebase.h.

◆ m_swvol_setting

bool VolumeBase::m_swvol_setting {false}
private

Definition at line 48 of file volumebase.h.

◆ m_channels

int VolumeBase::m_channels {0}
private

Definition at line 49 of file volumebase.h.


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