Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SoundEngine Class Reference

#include <sound_engine.h>

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

Public Slots

void testSound ()

Public Member Functions

 SoundEngine (QObject *parent=nullptr)
 ~SoundEngine () override
void playSound (const QString &fileName)
QStringMapgetAvailableThemes ()

Protected Member Functions

void ensureThemeDirectoryExists ()

Private Slots

void soundEnabledChanged ()
void themeChangedSlot ()

Private Attributes

QStringMap availableThemes
QMap< QString, QString > audioData
QAudioOutput * audioOutput
QMediaPlayer * player

Constructor & Destructor Documentation

◆ SoundEngine()

SoundEngine::SoundEngine ( QObject * parent = nullptr)
explicit
Here is the call graph for this function:

◆ ~SoundEngine()

SoundEngine::~SoundEngine ( )
override

Member Function Documentation

◆ ensureThemeDirectoryExists()

void SoundEngine::ensureThemeDirectoryExists ( )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAvailableThemes()

QStringMap & SoundEngine::getAvailableThemes ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ playSound()

void SoundEngine::playSound ( const QString & fileName)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ soundEnabledChanged

void SoundEngine::soundEnabledChanged ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ testSound

void SoundEngine::testSound ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ themeChangedSlot

void SoundEngine::themeChangedSlot ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ audioData

QMap<QString, QString> SoundEngine::audioData
private

◆ audioOutput

QAudioOutput* SoundEngine::audioOutput
private

◆ availableThemes

QStringMap SoundEngine::availableThemes
private

◆ player

QMediaPlayer* SoundEngine::player
private

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