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"
9
11
13{
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:
33};
34
35#endif // AUDIOOUTPUTDX
void WriteAudio(unsigned char *buffer, int size) override
int GetVolumeChannel(int channel) const override
void SetVolumeChannel(int channel, int volume) override
AudioOutputDXPrivate * m_priv
Definition: audiooutputdx.h:31
AudioOutputDX(const AudioSettings &settings)
bool OpenDevice(void) override
AudioOutputSettings * GetOutputSettings(bool passthrough) override
static QMap< int, QString > * GetDXDevices(void)
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
virtual ~AudioOutputDX()