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
Collaboration diagram for OutputListeners:
Collaboration graph

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 ( )

◆ ~OutputListeners()

OutputListeners::~OutputListeners ( )

Member Function Documentation

◆ hasVisual()

bool OutputListeners::hasVisual ( void  )

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 ( )

Definition at line 112 of file output.h.

◆ setBufferSize()

void OutputListeners::setBufferSize ( unsigned int  sz)

Definition at line 114 of file output.h.

Referenced by MusicPlayer::openOutputDevice().

◆ bufferSize()

unsigned int OutputListeners::bufferSize ( ) const

Definition at line 115 of file output.h.

◆ error()

void OutputListeners::error ( const QString &  e)

◆ dispatchVisual()

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

Definition at line 49 of file output.cpp.

Referenced by AudioOutputBase::AddData().

◆ prepareVisuals()

void OutputListeners::prepareVisuals ( )

Definition at line 63 of file output.cpp.

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

Member Data Documentation

◆ m_mtx

QMutex OutputListeners::m_mtx

Definition at line 126 of file output.h.

◆ m_visuals

Visuals OutputListeners::m_visuals

Definition at line 127 of file output.h.

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

◆ m_bufsize

unsigned int OutputListeners::m_bufsize {0}

Definition at line 129 of file output.h.

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