KVIrc 5.2.6
Developer APIs
KviSoundPlayer Class Reference

#include <libkvisnd.h>

+ Inheritance diagram for KviSoundPlayer:

Public Member Functions

bool detectSoundSystem (QString &szSoundSystem)
 
void getAvailableSoundSystems (QStringList *l)
 
bool havePlayingSounds ()
 
bool isMuted ()
 
 KviSoundPlayer ()
 
bool play (const QString &szFileName)
 
void setMuted (bool muted)
 
virtual ~KviSoundPlayer ()
 

Protected Member Functions

void cleanupAfterLastPlayerEntry ()
 
void cleanupNull ()
 
bool event (QEvent *e) override
 
bool playNull (const QString &szFileName)
 COMPILE_PHONON_SUPPORT.
 
void registerSoundThread (KviSoundThread *t)
 
void stopAllSoundThreads ()
 
void unregisterSoundThread (KviSoundThread *t)
 

Protected Attributes

KviSoundPlayerEntrym_pLastUsedSoundPlayerEntry
 COMPILE_PHONON_SUPPORT.
 
KviPointerHashTable< QString, KviSoundPlayerEntry > * m_pSoundSystemDict
 
KviPointerList< KviSoundThread > * m_pThreadList
 

Friends

class KviSoundThread
 

Constructor & Destructor Documentation

◆ KviSoundPlayer()

KviSoundPlayer::KviSoundPlayer ( )

COMPILE_PHONON_SUPPORT

COMPILE_ON_WINDOWS

COMPILE_ON_WINDOWS

References cleanupNull(), KVI_PTR2MEMBER, m_pLastUsedSoundPlayerEntry, m_pSoundSystemDict, m_pThreadList, and playNull().

◆ ~KviSoundPlayer()

Member Function Documentation

◆ cleanupAfterLastPlayerEntry()

void KviSoundPlayer::cleanupAfterLastPlayerEntry ( )
protected

◆ cleanupNull()

void KviSoundPlayer::cleanupNull ( )
protected

Referenced by KviSoundPlayer().

◆ detectSoundSystem()

bool KviSoundPlayer::detectSoundSystem ( QString & szSoundSystem)

COMPILE_PHONON_SUPPORT

Referenced by play().

◆ event()

bool KviSoundPlayer::event ( QEvent * e)
overrideprotected

References e, KVI_THREAD_EVENT, KviSoundThread, and t.

◆ getAvailableSoundSystems()

void KviSoundPlayer::getAvailableSoundSystems ( QStringList * l)

◆ havePlayingSounds()

bool KviSoundPlayer::havePlayingSounds ( )

References m_pThreadList.

◆ isMuted()

bool KviSoundPlayer::isMuted ( )
inline

References KVI_OPTION_BOOL, and KviOption_boolMuteAllSounds.

Referenced by play().

◆ play()

◆ playNull()

bool KviSoundPlayer::playNull ( const QString & szFileName)
protected

COMPILE_PHONON_SUPPORT.

COMPILE_ON_WINDOWS COMPILE_ON_WINDOWS

Referenced by KviSoundPlayer().

◆ registerSoundThread()

void KviSoundPlayer::registerSoundThread ( KviSoundThread * t)
protected

References KviSoundThread, m_pThreadList, and t.

◆ setMuted()

void KviSoundPlayer::setMuted ( bool muted)
inline

◆ stopAllSoundThreads()

void KviSoundPlayer::stopAllSoundThreads ( )
protected

◆ unregisterSoundThread()

void KviSoundPlayer::unregisterSoundThread ( KviSoundThread * t)
protected

References KviSoundThread, m_pThreadList, and t.

Friends And Related Symbol Documentation

◆ KviSoundThread

Member Data Documentation

◆ m_pLastUsedSoundPlayerEntry

KviSoundPlayerEntry* KviSoundPlayer::m_pLastUsedSoundPlayerEntry
protected

COMPILE_PHONON_SUPPORT.

COMPILE_QTMULTIMEDIA_SUPPORT

Referenced by cleanupAfterLastPlayerEntry(), KviSoundPlayer(), play(), and ~KviSoundPlayer().

◆ m_pSoundSystemDict

KviPointerHashTable<QString, KviSoundPlayerEntry>* KviSoundPlayer::m_pSoundSystemDict
protected

◆ m_pThreadList


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