MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
PulseHandler Class Reference

#include <audiopulsehandler.h>

Collaboration diagram for PulseHandler:
Collaboration graph
[legend]

Public Types

enum  PulseAction { kPulseSuspend = 0, kPulseResume, kPulseCleanup }
 

Public Member Functions

 ~PulseHandler (void)
 
bool Valid (void)
 

Static Public Member Functions

static bool Suspend (enum PulseAction action)
 

Public Attributes

pa_context_state m_ctxState {PA_CONTEXT_UNCONNECTED}
 
pa_context * m_ctx {nullptr}
 
int m_pendingOperations {0}
 

Static Public Attributes

static PulseHandlerg_pulseHandler = nullptr
 
static bool g_pulseHandlerActive = false
 

Private Member Functions

 PulseHandler (void)=default
 
bool Init (void)
 
bool SuspendInternal (bool suspend)
 

Private Attributes

pa_mainloop * m_loop {nullptr}
 
bool m_initialised {false}
 
bool m_valid {false}
 
QThread * m_thread {nullptr}
 

Detailed Description

Definition at line 8 of file audiopulsehandler.h.

Member Enumeration Documentation

◆ PulseAction

Enumerator
kPulseSuspend 
kPulseResume 
kPulseCleanup 

Definition at line 11 of file audiopulsehandler.h.

Constructor & Destructor Documentation

◆ ~PulseHandler()

PulseHandler::~PulseHandler ( void  )

Definition at line 199 of file audiopulsehandler.cpp.

◆ PulseHandler()

PulseHandler::PulseHandler ( void  )
privatedefault

Referenced by Suspend().

Member Function Documentation

◆ Suspend()

bool PulseHandler::Suspend ( enum PulseAction  action)
static

◆ Valid()

bool PulseHandler::Valid ( void  )

Definition at line 219 of file audiopulsehandler.cpp.

Referenced by Suspend().

◆ Init()

bool PulseHandler::Init ( void  )
private

Definition at line 229 of file audiopulsehandler.cpp.

Referenced by SuspendInternal().

◆ SuspendInternal()

bool PulseHandler::SuspendInternal ( bool  suspend)
private

Definition at line 290 of file audiopulsehandler.cpp.

Referenced by Suspend().

Member Data Documentation

◆ g_pulseHandler

PulseHandler * PulseHandler::g_pulseHandler = nullptr
static

Definition at line 19 of file audiopulsehandler.h.

Referenced by OperationCallback(), StatusCallback(), and Suspend().

◆ g_pulseHandlerActive

bool PulseHandler::g_pulseHandlerActive = false
static

Definition at line 20 of file audiopulsehandler.h.

Referenced by OperationCallback(), StatusCallback(), and Suspend().

◆ m_ctxState

pa_context_state PulseHandler::m_ctxState {PA_CONTEXT_UNCONNECTED}

Definition at line 25 of file audiopulsehandler.h.

Referenced by Init(), and Valid().

◆ m_ctx

pa_context* PulseHandler::m_ctx {nullptr}

Definition at line 26 of file audiopulsehandler.h.

Referenced by Init(), SuspendInternal(), Valid(), and ~PulseHandler().

◆ m_pendingOperations

int PulseHandler::m_pendingOperations {0}

Definition at line 27 of file audiopulsehandler.h.

Referenced by SuspendInternal().

◆ m_loop

pa_mainloop* PulseHandler::m_loop {nullptr}
private

Definition at line 34 of file audiopulsehandler.h.

Referenced by Init(), SuspendInternal(), and ~PulseHandler().

◆ m_initialised

bool PulseHandler::m_initialised {false}
private

Definition at line 35 of file audiopulsehandler.h.

Referenced by Init(), and Valid().

◆ m_valid

bool PulseHandler::m_valid {false}
private

Definition at line 36 of file audiopulsehandler.h.

Referenced by Init(), and Valid().

◆ m_thread

QThread* PulseHandler::m_thread {nullptr}
private

Definition at line 37 of file audiopulsehandler.h.

Referenced by Init(), and SuspendInternal().


The documentation for this class was generated from the following files: