blob: 3dc3cfdab074be49a04309890564f85d8c61bd76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef AUDIOPLAYER_H
#define AUDIOPLAYER_H
#include <QObject>
#include <phonon/phononnamespace.h>
namespace Phonon
{
class MediaObject;
class AudioOutput;
}
class AudioPlayer
: public QObject
{
Q_OBJECT
public:
AudioPlayer();
static AudioPlayer *self();
void stop();
void setMuted(bool mute = true);
void playIntro();
signals:
void finished();
private slots:
void finished_p();
void stateChanged_p(Phonon::State newstate, Phonon::State oldstate);
private:
Phonon::MediaObject *m_player;
Phonon::AudioOutput *m_output;
static AudioPlayer *m_instance;
};
#endif // AUDIOPLAYER_H
|