MythTV
0.27pre
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
libs
libmyth
audio
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
8
class
PulseHandler
9
{
10
public
:
11
enum
PulseAction
12
{
13
kPulseSuspend
= 0,
14
kPulseResume
,
15
kPulseCleanup
,
16
};
17
18
static
bool
Suspend
(
enum
PulseAction
action
);
19
static
PulseHandler
*
g_pulseHandler
;
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
;
27
int
m_pending_operations
;
28
29
private
:
30
PulseHandler
(
void
);
31
bool
Init
(
void
);
32
bool
SuspendInternal
(
bool
suspend);
33
34
pa_mainloop *
m_loop
;
35
bool
m_initialised
;
36
bool
m_valid
;
37
QThread *
m_thread
;
38
};
39
40
#endif // AUDIOPULSEHANDLER_H
Generated on Mon May 20 2013 06:59:46 for MythTV by
1.8.1.2