MythTV  master
audiooutputdx.h
Go to the documentation of this file.
1 #ifndef AUDIOOUTPUTDX
2 #define AUDIOOUTPUTDX
3 
4 #include <QMap>
5 
6 // MythTV headers
7 #include "audiooutputbase.h"
8 #include "audiooutputsettings.h"
9 
11 
13 {
14  friend class AudioOutputDXPrivate;
15  public:
16  explicit AudioOutputDX(const AudioSettings &settings);
17  virtual ~AudioOutputDX();
18 
19  int GetVolumeChannel(int channel) const override; // VolumeBase
20  void SetVolumeChannel(int channel, int volume) override; // VolumeBase
21  static QMap<int, QString> *GetDXDevices(void);
22 
23  protected:
24  bool OpenDevice(void) override; // AudioOutputBase
25  void CloseDevice(void) override; // AudioOutputBase
26  void WriteAudio(unsigned char *buffer, int size) override; // AudioOutputBase
27  int GetBufferedOnSoundcard(void) const override; // AudioOutputBase
28  AudioOutputSettings* GetOutputSettings(bool passthrough) override; // AudioOutputBase
29 
30  protected:
32  bool m_UseSPDIF;
33 };
34 
35 #endif // AUDIOOUTPUTDX
channel
QDomElement channel
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:498
AudioOutputDX
Definition: audiooutputdx.h:13
AudioOutputDX::~AudioOutputDX
virtual ~AudioOutputDX()
Definition: audiooutputdx.cpp:117
AudioOutputDX::AudioOutputDX
AudioOutputDX(const AudioSettings &settings)
Definition: audiooutputdx.cpp:102
AudioOutputDX::OpenDevice
bool OpenDevice(void) override
Definition: audiooutputdx.cpp:441
AudioOutputDX::GetVolumeChannel
int GetVolumeChannel(int channel) const override
Definition: audiooutputdx.cpp:579
AudioOutputDXPrivate
Definition: audiooutputdx.cpp:54
AudioOutputDX::m_priv
AudioOutputDXPrivate * m_priv
Definition: audiooutputdx.h:31
AudioOutputDX::m_UseSPDIF
bool m_UseSPDIF
Definition: audiooutputdx.h:32
AudioOutputDX::GetDXDevices
static QMap< int, QString > * GetDXDevices(void)
Definition: audiooutputdx.cpp:622
AudioSettings
Definition: audiosettings.h:29
AudioOutputBase
Definition: audiooutputbase.h:50
audiooutputbase.h
AudioOutputSettings
Definition: audiooutputsettings.h:50
AudioOutputDX::GetOutputSettings
AudioOutputSettings * GetOutputSettings(bool passthrough) override
Definition: audiooutputdx.cpp:391
AudioOutputDX::GetBufferedOnSoundcard
int GetBufferedOnSoundcard(void) const override
Return the size in bytes of frames currently in the audio buffer adjusted with the audio playback lat...
Definition: audiooutputdx.cpp:554
AudioOutputDX::CloseDevice
void CloseDevice(void) override
Definition: audiooutputdx.cpp:538
AudioOutputDX::SetVolumeChannel
void SetVolumeChannel(int channel, int volume) override
Definition: audiooutputdx.cpp:601
AudioOutputDX::WriteAudio
void WriteAudio(unsigned char *buffer, int size) override
Definition: audiooutputdx.cpp:544
audiooutputsettings.h