#include <volumebase.h>
Public Member Functions | |
| VolumeBase () | |
| virtual | ~VolumeBase () |
| 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 |
Private Attributes | |
| int | volume |
| MuteState | current_mute_state |
| bool | swvol |
| bool | swvol_setting |
| int | channels |
Definition at line 13 of file volumebase.h.
| VolumeBase::VolumeBase | ( | ) |
Definition at line 12 of file volumebase.cpp.
| virtual VolumeBase::~VolumeBase | ( | ) | [inline, virtual] |
Definition at line 17 of file volumebase.h.
| void VolumeBase::SWVolume | ( | bool | set | ) |
Definition at line 25 of file volumebase.cpp.
| bool VolumeBase::SWVolume | ( | void | ) | const |
Definition at line 20 of file volumebase.cpp.
Referenced by AudioOutputBase::AddData(), AudioOutputBase::CanPassthrough(), and AudioOutputBase::Reconfigure().
| uint VolumeBase::GetCurrentVolume | ( | void | ) | const [virtual] |
Reimplemented in AudioReencodeBuffer.
Definition at line 32 of file volumebase.cpp.
Referenced by MusicPlayer::getVolume(), and AudioPlayer::GetVolume().
| void VolumeBase::SetCurrentVolume | ( | int | value | ) | [virtual] |
Reimplemented in AudioReencodeBuffer.
Definition at line 37 of file volumebase.cpp.
Referenced by AdjustCurrentVolume(), AudioOutputCA::OpenDevice(), MythRAOPConnection::ProcessRequest(), MusicPlayer::setVolume(), and AudioPlayer::SetVolume().
| void VolumeBase::AdjustCurrentVolume | ( | int | change | ) | [virtual] |
Reimplemented in AudioReencodeBuffer.
Definition at line 47 of file volumebase.cpp.
Referenced by AudioPlayer::AdjustVolume(), MusicPlayer::decVolume(), and MusicPlayer::incVolume().
| void VolumeBase::ToggleMute | ( | void | ) | [virtual] |
Reimplemented in AudioReencodeBuffer.
Definition at line 59 of file volumebase.cpp.
Referenced by MusicPlayer::toggleMute().
| MuteState VolumeBase::GetMuteState | ( | void | ) | const [virtual] |
Reimplemented in AudioReencodeBuffer.
Definition at line 65 of file volumebase.cpp.
Referenced by AudioOutputBase::GetAudioData(), MusicPlayer::getMuteState(), AudioPlayer::GetMuteState(), and ToggleMute().
Definition at line 52 of file volumebase.cpp.
Referenced by AudioPlayer::SetMuteState(), and ToggleMute().
Definition at line 70 of file volumebase.cpp.
Referenced by AudioPlayer::IncrMuteState().
| virtual int VolumeBase::GetVolumeChannel | ( | int | channel | ) | const [protected, pure virtual] |
Implemented in AudioOutputALSA, AudioOutputCA, AudioOutputDX, AudioOutputJACK, AudioOutputNULL, AudioOutputOSS, AudioOutputPulseAudio, AudioOutputWin, and AudioReencodeBuffer.
Referenced by SyncVolume().
| virtual void VolumeBase::SetVolumeChannel | ( | int | channel, | |
| int | volume | |||
| ) | [protected, pure virtual] |
Implemented in AudioOutputALSA, AudioOutputCA, AudioOutputDX, AudioOutputJACK, AudioOutputNULL, AudioOutputOSS, AudioOutputPulseAudio, AudioOutputWin, and AudioReencodeBuffer.
Referenced by UpdateVolume().
| virtual void VolumeBase::SetSWVolume | ( | int | new_volume, | |
| bool | save | |||
| ) | [protected, pure virtual] |
Implemented in AudioOutputBase, and AudioReencodeBuffer.
Referenced by UpdateVolume().
| virtual int VolumeBase::GetSWVolume | ( | void | ) | [protected, pure virtual] |
Implemented in AudioOutputBase, and AudioReencodeBuffer.
Referenced by SyncVolume().
| void VolumeBase::UpdateVolume | ( | void | ) | [protected] |
Definition at line 93 of file volumebase.cpp.
Referenced by AudioOutputBase::Reconfigure(), SetCurrentVolume(), and SetMuteState().
| void VolumeBase::SyncVolume | ( | void | ) | [protected] |
Definition at line 126 of file volumebase.cpp.
Referenced by AudioOutputBase::Reconfigure().
| void VolumeBase::SetChannels | ( | int | new_channels | ) | [protected] |
Definition at line 135 of file volumebase.cpp.
Referenced by AudioOutputBase::Reconfigure().
bool VolumeBase::internal_vol [protected] |
Definition at line 41 of file volumebase.h.
Referenced by AudioOutputBase::AddData(), AudioOutputBase::CanPassthrough(), AudioOutputJACK::DeinterleaveAudio(), AudioOutputJACK::GetVolumeChannel(), AudioOutputOSS::OpenDevice(), AudioOutputJACK::OpenDevice(), AudioOutputCA::OpenDevice(), AudioOutputALSA::OpenDevice(), AudioOutputBase::Reconfigure(), AudioOutputJACK::SetVolumeChannel(), AudioOutputALSA::SetVolumeChannel(), and VolumeBase().
int VolumeBase::volume [private] |
Reimplemented in AudioOutputBase.
Definition at line 45 of file volumebase.h.
Referenced by AdjustCurrentVolume(), GetCurrentVolume(), SetCurrentVolume(), SyncVolume(), and UpdateVolume().
MuteState VolumeBase::current_mute_state [private] |
Definition at line 46 of file volumebase.h.
Referenced by GetMuteState(), SetMuteState(), and UpdateVolume().
bool VolumeBase::swvol [private] |
Definition at line 47 of file volumebase.h.
Referenced by SWVolume(), SyncVolume(), UpdateVolume(), and VolumeBase().
bool VolumeBase::swvol_setting [private] |
Definition at line 48 of file volumebase.h.
Referenced by SWVolume(), and VolumeBase().
int VolumeBase::channels [private] |
Reimplemented in AudioOutputBase.
Definition at line 49 of file volumebase.h.
Referenced by SetChannels(), and UpdateVolume().
1.6.3