The Soundmanager class provides several sounds which can be played. The Soundmanager is implemented as a singleton to manage the required resources.
More...
#include <soundmanager.h>
The Soundmanager class provides several sounds which can be played. The Soundmanager is implemented as a singleton to manage the required resources.
Soundmanager::~Soundmanager |
( |
| ) |
|
|
virtual |
Soundmanager::Soundmanager |
( |
| ) |
|
|
protected |
void Soundmanager::drop |
( |
| ) |
|
|
static |
void Soundmanager::loadSounds |
( |
| ) |
|
|
protected |
void Soundmanager::playBackgroundMusic |
( |
| ) |
|
void Soundmanager::playCollisionSound |
( |
| ) |
|
Sets the collision sound that will be played next time playCollisionSound() is called.
- Parameters
-
effect | The chosen SoundEffect |
void Soundmanager::stopBackgroundMusic |
( |
| ) |
|
Stops playing our background music.
QMediaPlayer* Soundmanager::m_backgroundMusic |
|
protected |
QMediaPlayer* Soundmanager::m_collisionSound |
|
protected |
The documentation for this class was generated from the following files: