MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
audiopulsehandler.h
Go to the documentation of this file.
1 #ifndef AUDIOPULSEHANDLER_H
2 #define AUDIOPULSEHANDLER_H
3 
4 #include <pulse/pulseaudio.h>
5 
6 class QThread;
7 
9 {
10  public:
12  {
16  };
17 
18  static bool Suspend(enum PulseAction action);
20  static bool g_pulseHandlerActive;
21 
22  ~PulseHandler(void);
23  bool Valid(void);
24 
25  pa_context_state m_ctx_state;
26  pa_context *m_ctx;
28 
29  private:
30  PulseHandler(void);
31  bool Init(void);
32  bool SuspendInternal(bool suspend);
33 
34  pa_mainloop *m_loop;
36  bool m_valid;
37  QThread *m_thread;
38 };
39 
40 #endif // AUDIOPULSEHANDLER_H