Current section
Files
Jump to
Current section
Files
src/KioskSounds.h
#ifndef QPLAYER_MULTIMEDIA_H
#define QPLAYER_MULTIMEDIA_H
#include <QtCore>
#include <QtMultimedia/QMediaPlayer>
class KioskSounds : public QObject
{
Q_OBJECT
public:
explicit KioskSounds(QObject *parent = nullptr);
void play(const QUrl &soundFile);
public slots:
void player_error(QMediaPlayer::Error error);
private:
QMediaPlayer *player;
};
#endif // QPLAYER_MULTIMEDIA_H