MythTV
master
|
#include <libmyth/audio/audiosettings.h>
Public Member Functions | |
AudioSettings ()=default | |
AudioSettings & | operator= (const AudioSettings &)=delete |
AudioSettings (const AudioSettings &other) | |
AudioSettings (QString main_device, QString passthru_device, AudioFormat format, int channels, AVCodecID codec, int samplerate, AudioOutputSource source, bool set_initial_vol, bool use_passthru, int upmixer_startup=0, const AudioOutputSettings *custom=nullptr) | |
AudioSettings (AudioFormat format, int channels, AVCodecID codec, int samplerate, bool use_passthru, int upmixer_startup=0, int codec_profile=0) | |
AudioSettings (QString main_device, QString passthru_device=QString()) | |
~AudioSettings () | |
void | FixPassThrough (void) |
void | TrimDeviceType (void) |
QString | GetMainDevice (void) const |
QString | GetPassthruDevice (void) const |
Public Attributes | |
QString | m_mainDevice |
QString | m_passthruDevice |
AudioFormat | m_format {FORMAT_NONE} |
int | m_channels {-1} |
AVCodecID | m_codec {AV_CODEC_ID_NONE} |
int | m_codecProfile {-1} |
int | m_sampleRate {-1} |
bool | m_setInitialVol {false} |
bool | m_usePassthru {false} |
AudioOutputSource | m_source {AUDIOOUTPUT_UNKNOWN} |
int | m_upmixer {0} |
bool | m_init {false} |
If set to false, AudioOutput instance will not try to initially open the audio device. More... | |
AudioOutputSettings * | m_custom {nullptr} |
custom contains a pointer to the audio device capabilities if defined, AudioOutput will not try to automatically discover them. More... | |
Definition at line 28 of file audiosettings.h.
|
default |
AudioSettings::AudioSettings | ( | const AudioSettings & | other | ) |
Definition at line 11 of file audiosettings.cpp.
AudioSettings::AudioSettings | ( | QString | main_device, |
QString | passthru_device, | ||
AudioFormat | format, | ||
int | channels, | ||
AVCodecID | codec, | ||
int | samplerate, | ||
AudioOutputSource | source, | ||
bool | set_initial_vol, | ||
bool | use_passthru, | ||
int | upmixer_startup = 0 , |
||
const AudioOutputSettings * | custom = nullptr |
||
) |
Definition at line 37 of file audiosettings.cpp.
AudioSettings::AudioSettings | ( | AudioFormat | format, |
int | channels, | ||
AVCodecID | codec, | ||
int | samplerate, | ||
bool | use_passthru, | ||
int | upmixer_startup = 0 , |
||
int | codec_profile = 0 |
||
) |
Definition at line 73 of file audiosettings.cpp.
|
inlineexplicit |
Definition at line 55 of file audiosettings.h.
AudioSettings::~AudioSettings | ( | ) |
Definition at line 92 of file audiosettings.cpp.
|
delete |
void AudioSettings::FixPassThrough | ( | void | ) |
Definition at line 97 of file audiosettings.cpp.
void AudioSettings::TrimDeviceType | ( | void | ) |
Definition at line 103 of file audiosettings.cpp.
|
inline |
Definition at line 64 of file audiosettings.h.
|
inline |
Definition at line 66 of file audiosettings.h.
QString AudioSettings::m_mainDevice |
Definition at line 70 of file audiosettings.h.
Referenced by TrimDeviceType().
QString AudioSettings::m_passthruDevice |
Definition at line 71 of file audiosettings.h.
Referenced by FixPassThrough(), and TrimDeviceType().
AudioFormat AudioSettings::m_format {FORMAT_NONE} |
Definition at line 72 of file audiosettings.h.
Referenced by AudioReencodeBuffer::Reconfigure(), and AudioOutputBase::Reconfigure().
int AudioSettings::m_channels {-1} |
Definition at line 73 of file audiosettings.h.
Referenced by AudioReencodeBuffer::Reconfigure(), and AudioOutputBase::Reconfigure().
AVCodecID AudioSettings::m_codec {AV_CODEC_ID_NONE} |
Definition at line 74 of file audiosettings.h.
Referenced by AudioOutputBase::Reconfigure().
int AudioSettings::m_codecProfile {-1} |
Definition at line 75 of file audiosettings.h.
Referenced by AudioOutputBase::Reconfigure().
int AudioSettings::m_sampleRate {-1} |
Definition at line 76 of file audiosettings.h.
Referenced by AudioReencodeBuffer::Reconfigure(), and AudioOutputBase::Reconfigure().
Definition at line 77 of file audiosettings.h.
Definition at line 78 of file audiosettings.h.
Referenced by AudioReencodeBuffer::Reconfigure(), and AudioOutputBase::Reconfigure().
AudioOutputSource AudioSettings::m_source {AUDIOOUTPUT_UNKNOWN} |
Definition at line 79 of file audiosettings.h.
int AudioSettings::m_upmixer {0} |
Definition at line 80 of file audiosettings.h.
Referenced by AudioOutputBase::InitSettings().
If set to false, AudioOutput instance will not try to initially open the audio device.
Definition at line 85 of file audiosettings.h.
Referenced by AudioOutputALSA::AudioOutputALSA(), AudioOutputAudioTrack::AudioOutputAudioTrack(), AudioOutputCA::AudioOutputCA(), AudioOutputDX::AudioOutputDX(), AudioOutputJACK::AudioOutputJACK(), AudioOutputNULL::AudioOutputNULL(), AudioOutputOpenSLES::AudioOutputOpenSLES(), AudioOutputOSS::AudioOutputOSS(), AudioOutputPulseAudio::AudioOutputPulseAudio(), AudioOutputWin::AudioOutputWin(), and AudioPlayer::ReinitAudio().
AudioOutputSettings* AudioSettings::m_custom {nullptr} |
custom contains a pointer to the audio device capabilities if defined, AudioOutput will not try to automatically discover them.
This is used by the AudioTest setting screen where the user can manually override and immediately use them.
Definition at line 92 of file audiosettings.h.
Referenced by AudioSettings(), AudioOutputBase::InitSettings(), and ~AudioSettings().