31 #include <QMediaPlayer>
53 static void playSound(
const QString &filename);
The SoundPlayer class provides functionality to play sound effects.
Definition: SoundPlayer.h:37
static void playSound(const QString &filename)
Plays a sound effect from the specified file.
Definition: SoundPlayer.cpp:38
SoundPlayer(QObject *parent=nullptr)
Constructs a SoundPlayer object.
Definition: SoundPlayer.cpp:34