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
AudioOutputDXPrivate * m_priv
Definition: audiooutputdx.h:31
AudioOutputSettings * GetOutputSettings(bool passthrough) override
void WriteAudio(unsigned char *buffer, int size) override
static QMap< int, QString > * GetDXDevices(void)
virtual ~AudioOutputDX()
AudioOutputDX(const AudioSettings &settings)
int GetBufferedOnSoundcard(void) const override
Return the size in bytes of frames currently in the audio buffer adjusted with the audio playback lat...
void CloseDevice(void) override
void SetVolumeChannel(int channel, int volume) override
bool OpenDevice(void) override
int GetVolumeChannel(int channel) const override