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

#include <libmyth/output.h>

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

Public Member Functions

 OutputListeners ()=default
 
 ~OutputListeners () override=default
 
bool hasVisual (void)
 
void addVisual (MythTV::Visual *v)
 
void removeVisual (MythTV::Visual *v)
 
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, std::chrono::milliseconds timecode, 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 102 of file output.h.

Constructor & Destructor Documentation

◆ OutputListeners()

OutputListeners::OutputListeners ( )
default

◆ ~OutputListeners()

OutputListeners::~OutputListeners ( )
overridedefault

Member Function Documentation

◆ hasVisual()

bool OutputListeners::hasVisual ( void  )
inline

Definition at line 108 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 112 of file output.h.

◆ setBufferSize()

void OutputListeners::setBufferSize ( unsigned int  sz)
inline

Definition at line 114 of file output.h.

Referenced by MusicPlayer::openOutputDevice().

◆ bufferSize()

unsigned int OutputListeners::bufferSize ( ) const
inline

Definition at line 115 of file output.h.

◆ error()

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

◆ dispatchVisual()

void OutputListeners::dispatchVisual ( uchar *  b,
unsigned long  b_len,
std::chrono::milliseconds  timecode,
int  chan,
int  prec 
)
protected

Definition at line 49 of file output.cpp.

Referenced by AudioOutputBase::AddData().

◆ prepareVisuals()

void OutputListeners::prepareVisuals ( )
protected

Definition at line 63 of file output.cpp.

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

Member Data Documentation

◆ m_mtx

QMutex OutputListeners::m_mtx
private

Definition at line 126 of file output.h.

◆ m_visuals

Visuals OutputListeners::m_visuals
private

Definition at line 127 of file output.h.

Referenced by addVisual(), dispatchVisual(), prepareVisuals(), and removeVisual().

◆ m_bufsize

unsigned int OutputListeners::m_bufsize {0}
private

Definition at line 129 of file output.h.


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