MythTV  master
audiooutputwin.h
Go to the documentation of this file.
1 #ifndef AUDIOOUTPUTWIN
2 #define AUDIOOUTPUTWIN
3 
4 // MythTV headers
5 #include "audiooutputbase.h"
6 
8 
10 {
11  friend class AudioOutputWinPrivate;
12  public:
13  explicit AudioOutputWin(const AudioSettings &settings);
14  virtual ~AudioOutputWin();
15 
16  // Volume control
17  int GetVolumeChannel(int channel) const override; // VolumeBase
18  void SetVolumeChannel(int channel, int volume) override; // VolumeBase
19 
20  protected:
21  bool OpenDevice(void) override; // AudioOutputBase
22  void CloseDevice(void) override; // AudioOutputBase
23  void WriteAudio(unsigned char *aubuf, int size) override; // AudioOutputBase
24  int GetBufferedOnSoundcard(void) const override; // AudioOutputBase
25  AudioOutputSettings* GetOutputSettings(bool digital) override; // AudioOutputBase
26 
27  protected:
29  long m_nPkts {0};
31  unsigned char **m_OutPkts {nullptr};
32  bool m_UseSPDIF;
33 
34  static const uint kPacketCnt;
35 };
36 
37 #endif // AUDIOOUTPUTWIN
virtual ~AudioOutputWin()
AudioOutputWin(const AudioSettings &settings)
AudioOutputWinPrivate * m_priv
unsigned int uint
Definition: compat.h:140
unsigned char ** m_OutPkts
AudioOutputSettings * GetOutputSettings(bool digital) override
void CloseDevice(void) override
bool OpenDevice(void) override
void SetVolumeChannel(int channel, int volume) override
static const uint kPacketCnt
void WriteAudio(unsigned char *aubuf, int size) override
int GetBufferedOnSoundcard(void) const override
Return the size in bytes of frames currently in the audio buffer adjusted with the audio playback lat...
int GetVolumeChannel(int channel) const override