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
channel
QDomElement channel
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:501
AudioOutputWin::~AudioOutputWin
virtual ~AudioOutputWin()
Definition: audiooutputwin.cpp:120
AudioOutputWin::CloseDevice
void CloseDevice(void) override
Definition: audiooutputwin.cpp:239
AudioOutputWin::m_UseSPDIF
bool m_UseSPDIF
Definition: audiooutputwin.h:32
AudioOutputWin::GetOutputSettings
AudioOutputSettings * GetOutputSettings(bool digital) override
Definition: audiooutputwin.cpp:141
AudioOutputWin::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: audiooutputwin.cpp:281
AudioOutputWin
Definition: audiooutputwin.h:9
AudioOutputWin::m_OutPkts
unsigned char ** m_OutPkts
Definition: audiooutputwin.h:31
AudioOutputWin::GetVolumeChannel
int GetVolumeChannel(int channel) const override
Definition: audiooutputwin.cpp:286
AudioSettings
Definition: audiosettings.h:28
AudioOutputBase
Definition: audiooutputbase.h:49
uint
unsigned int uint
Definition: compat.h:141
AudioOutputWin::AudioOutputWin
AudioOutputWin(const AudioSettings &settings)
Definition: audiooutputwin.cpp:109
AudioOutputWin::OpenDevice
bool OpenDevice(void) override
Definition: audiooutputwin.cpp:172
AudioOutputWinPrivate
Definition: audiooutputwin.cpp:47
AudioOutputWin::m_nPkts
long m_nPkts
Definition: audiooutputwin.h:29
audiooutputbase.h
AudioOutputWin::SetVolumeChannel
void SetVolumeChannel(int channel, int volume) override
Definition: audiooutputwin.cpp:303
AudioOutputSettings
Definition: audiooutputsettings.h:49
AudioOutputWin::m_priv
AudioOutputWinPrivate * m_priv
Definition: audiooutputwin.h:28
AudioOutputWin::m_CurrentPkt
uint m_CurrentPkt
Definition: audiooutputwin.h:30
AudioOutputWin::WriteAudio
void WriteAudio(unsigned char *aubuf, int size) override
Definition: audiooutputwin.cpp:244
AudioOutputWin::kPacketCnt
static const uint kPacketCnt
Definition: audiooutputwin.h:34