MythTV  master
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
OutputListeners Class Reference

#include <output.h>

Inheritance diagram for OutputListeners:
Inheritance graph
[legend]
Collaboration diagram for OutputListeners:
Collaboration graph
[legend]

Public Member Functions

 OutputListeners ()=default
 
virtual ~OutputListeners ()=default
 
bool hasVisual (void)
 
void addVisual (MythTV::Visual *)
 
void removeVisual (MythTV::Visual *)
 
QMutex * mutex ()
 
void setBufferSize (unsigned int sz)
 
unsigned int bufferSize () const
 
- Public Member Functions inherited from MythObservable
 MythObservable ()
 
virtual ~MythObservable ()
 
void addListener (QObject *listener)
 Add a listener to the observable. More...
 
void removeListener (QObject *listener)
 Remove a listener to the observable. More...
 
void dispatch (const MythEvent &event)
 Dispatch an event to all listeners. More...
 
bool hasListeners (void)
 

Protected Member Functions

void error (const QString &e)
 
void dispatchVisual (uchar *b, unsigned long b_len, unsigned long written, int chan, int prec)
 
void prepareVisuals ()
 

Private Attributes

QMutex m_mtx
 
Visuals m_visuals
 
unsigned int m_bufsize {0}
 

Additional Inherited Members

- Protected Attributes inherited from MythObservable
QMutex * m_lock {nullptr}
 
QSet< QObject * > m_listeners
 

Detailed Description

Definition at line 95 of file output.h.

Constructor & Destructor Documentation

◆ OutputListeners()

OutputListeners::OutputListeners ( )
default

◆ ~OutputListeners()

virtual OutputListeners::~OutputListeners ( )
virtualdefault

Member Function Documentation

◆ hasVisual()

bool OutputListeners::hasVisual ( void  )
inline

Definition at line 101 of file output.h.

Referenced by AudioOutputBase::AddData().

◆ addVisual()

void OutputListeners::addVisual ( MythTV::Visual v)

◆ removeVisual()

void OutputListeners::removeVisual ( MythTV::Visual v)

◆ mutex()

QMutex* OutputListeners::mutex ( )
inline

Definition at line 105 of file output.h.

◆ setBufferSize()

void OutputListeners::setBufferSize ( unsigned int  sz)
inline

Definition at line 107 of file output.h.

Referenced by MusicPlayer::openOutputDevice().

◆ bufferSize()

unsigned int OutputListeners::bufferSize ( ) const
inline

Definition at line 108 of file output.h.

◆ error()

void OutputListeners::error ( const QString &  e)
protected

◆ dispatchVisual()

void OutputListeners::dispatchVisual ( uchar *  b,
unsigned long  b_len,
unsigned long  written,
int  chan,
int  prec 
)
protected

Definition at line 50 of file output.cpp.

Referenced by AudioOutputBase::AddData().

◆ prepareVisuals()

void OutputListeners::prepareVisuals ( )
protected

Definition at line 64 of file output.cpp.

Referenced by AudioOutputBase::Reconfigure(), and AudioOutputBase::Reset().

Member Data Documentation

◆ m_mtx

QMutex OutputListeners::m_mtx
private

Definition at line 119 of file output.h.

◆ m_visuals

Visuals OutputListeners::m_visuals
private

Definition at line 120 of file output.h.

◆ m_bufsize

unsigned int OutputListeners::m_bufsize {0}
private

Definition at line 122 of file output.h.


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