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

#include <audiosettings.h>

Collaboration diagram for AudioSettings:
Collaboration graph
[legend]

Public Member Functions

 AudioSettings ()=default
 
 AudioSettings (const AudioSettings &other)
 
 AudioSettings (const QString &main_device, const QString &passthru_device, AudioFormat format, int channels, AVCodecID codec, int samplerate, AudioOutputSource source, bool set_initial_vol, bool use_passthru, int upmixer_startup=0, AudioOutputSettings *custom=nullptr)
 
 AudioSettings (AudioFormat format, int channels, AVCodecID codec, int samplerate, bool use_passthru, int upmixer_startup=0, int codec_profile=0)
 
 AudioSettings (const QString &main_device, const QString &passthru_device=QString())
 
 ~AudioSettings ()
 
void FixPassThrough (void)
 
void TrimDeviceType (void)
 
QString GetMainDevice (void) const
 
QString GetPassthruDevice (void) const
 

Public Attributes

QString m_main_device
 
QString m_passthru_device
 
AudioFormat m_format {FORMAT_NONE}
 
int m_channels {-1}
 
AVCodecID m_codec {AV_CODEC_ID_NONE}
 
int m_codec_profile {-1}
 
int m_samplerate {-1}
 
bool m_set_initial_vol {false}
 
bool m_use_passthru {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 24 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 ( const QString &  main_device,
const QString &  passthru_device,
AudioFormat  format,
int  channels,
AVCodecID  codec,
int  samplerate,
AudioOutputSource  source,
bool  set_initial_vol,
bool  use_passthru,
int  upmixer_startup = 0,
AudioOutputSettings custom = nullptr 
)

Definition at line 35 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 69 of file audiosettings.cpp.

◆ AudioSettings() [5/5]

AudioSettings::AudioSettings ( const QString &  main_device,
const QString &  passthru_device = QString() 
)
inline

Definition at line 50 of file audiosettings.h.

◆ ~AudioSettings()

AudioSettings::~AudioSettings ( )

Definition at line 88 of file audiosettings.cpp.

Member Function Documentation

◆ FixPassThrough()

void AudioSettings::FixPassThrough ( void  )

Definition at line 93 of file audiosettings.cpp.

Referenced by AudioOutput::OpenAudio().

◆ TrimDeviceType()

void AudioSettings::TrimDeviceType ( void  )

Definition at line 99 of file audiosettings.cpp.

Referenced by AudioOutput::OpenAudio().

◆ GetMainDevice()

QString AudioSettings::GetMainDevice ( void  ) const
inline

Definition at line 59 of file audiosettings.h.

◆ GetPassthruDevice()

QString AudioSettings::GetPassthruDevice ( void  ) const
inline

Definition at line 61 of file audiosettings.h.

Member Data Documentation

◆ m_main_device

QString AudioSettings::m_main_device

Definition at line 65 of file audiosettings.h.

Referenced by AudioOutput::OpenAudio(), and TrimDeviceType().

◆ m_passthru_device

QString AudioSettings::m_passthru_device

Definition at line 66 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 69 of file audiosettings.h.

Referenced by AudioOutputBase::Reconfigure().

◆ m_codec_profile

int AudioSettings::m_codec_profile {-1}

Definition at line 70 of file audiosettings.h.

Referenced by AudioOutputBase::Reconfigure().

◆ m_samplerate

int AudioSettings::m_samplerate {-1}

◆ m_set_initial_vol

bool AudioSettings::m_set_initial_vol {false}

Definition at line 72 of file audiosettings.h.

◆ m_use_passthru

bool AudioSettings::m_use_passthru {false}

◆ m_source

AudioOutputSource AudioSettings::m_source {AUDIOOUTPUT_UNKNOWN}

Definition at line 74 of file audiosettings.h.

◆ m_upmixer

int AudioSettings::m_upmixer {0}

Definition at line 75 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 87 of file audiosettings.h.

Referenced by AudioSettings(), AudioOutputBase::InitSettings(), and ~AudioSettings().


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