MythTV  master
Public Member Functions | Public Attributes | List of all members
AudioSettings Class Reference

#include <libmyth/audio/audiosettings.h>

Collaboration diagram for AudioSettings:
[legend]

Public Member Functions

 AudioSettings ()=default
 
AudioSettingsoperator= (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...
 
AudioOutputSettingsm_custom {nullptr}
 custom contains a pointer to the audio device capabilities if defined, AudioOutput will not try to automatically discover them. More...
 

Detailed Description

Definition at line 28 of file audiosettings.h.

Constructor & Destructor Documentation

◆ AudioSettings() [1/5]

AudioSettings::AudioSettings ( )
default

◆ AudioSettings() [2/5]

AudioSettings::AudioSettings ( const AudioSettings other)

Definition at line 11 of file audiosettings.cpp.

◆ AudioSettings() [3/5]

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() [4/5]

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.

◆ AudioSettings() [5/5]

AudioSettings::AudioSettings ( QString  main_device,
QString  passthru_device = QString() 
)
inlineexplicit

Definition at line 55 of file audiosettings.h.

◆ ~AudioSettings()

AudioSettings::~AudioSettings ( )

Definition at line 92 of file audiosettings.cpp.

Member Function Documentation

◆ operator=()

AudioSettings& AudioSettings::operator= ( const AudioSettings )
delete

◆ FixPassThrough()

void AudioSettings::FixPassThrough ( void  )

Definition at line 97 of file audiosettings.cpp.

◆ TrimDeviceType()

void AudioSettings::TrimDeviceType ( void  )

Definition at line 103 of file audiosettings.cpp.

◆ GetMainDevice()

QString AudioSettings::GetMainDevice ( void  ) const
inline

Definition at line 64 of file audiosettings.h.

◆ GetPassthruDevice()

QString AudioSettings::GetPassthruDevice ( void  ) const
inline

Definition at line 66 of file audiosettings.h.

Member Data Documentation

◆ m_mainDevice

QString AudioSettings::m_mainDevice

Definition at line 70 of file audiosettings.h.

Referenced by TrimDeviceType().

◆ m_passthruDevice

QString AudioSettings::m_passthruDevice

Definition at line 71 of file audiosettings.h.

Referenced by FixPassThrough(), and TrimDeviceType().

◆ m_format

AudioFormat AudioSettings::m_format {FORMAT_NONE}

◆ m_channels

int AudioSettings::m_channels {-1}

◆ m_codec

AVCodecID AudioSettings::m_codec {AV_CODEC_ID_NONE}

Definition at line 74 of file audiosettings.h.

Referenced by AudioOutputBase::Reconfigure().

◆ m_codecProfile

int AudioSettings::m_codecProfile {-1}

Definition at line 75 of file audiosettings.h.

Referenced by AudioOutputBase::Reconfigure().

◆ m_sampleRate

int AudioSettings::m_sampleRate {-1}

◆ m_setInitialVol

bool AudioSettings::m_setInitialVol {false}

Definition at line 77 of file audiosettings.h.

◆ m_usePassthru

bool AudioSettings::m_usePassthru {false}

◆ m_source

AudioOutputSource AudioSettings::m_source {AUDIOOUTPUT_UNKNOWN}

Definition at line 79 of file audiosettings.h.

◆ m_upmixer

int AudioSettings::m_upmixer {0}

Definition at line 80 of file audiosettings.h.

Referenced by AudioOutputBase::InitSettings().

◆ m_init

bool AudioSettings::m_init {false}

◆ m_custom

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().


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