diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-20 18:27:23 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-20 18:27:23 (GMT) |
commit | 8149107ade43f9c9fff8fe134f1bce5b5e8b2234 (patch) | |
tree | f395f60c01cd3564fcc61ba1fa7ab65e5e2a6821 /Swift/QtUI/QtSoundPlayer.h | |
parent | 059ace39c432a89845e245604af03f5f71e1da84 (diff) | |
download | swift-contrib-8149107ade43f9c9fff8fe134f1bce5b5e8b2234.zip swift-contrib-8149107ade43f9c9fff8fe134f1bce5b5e8b2234.tar.bz2 |
Use QSound for sounds.
Diffstat (limited to 'Swift/QtUI/QtSoundPlayer.h')
-rw-r--r-- | Swift/QtUI/QtSoundPlayer.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/Swift/QtUI/QtSoundPlayer.h b/Swift/QtUI/QtSoundPlayer.h index b9109a7..a75f042 100644 --- a/Swift/QtUI/QtSoundPlayer.h +++ b/Swift/QtUI/QtSoundPlayer.h @@ -4,22 +4,12 @@ #include <QObject> -namespace Phonon { - class AudioOutput; - class MediaObject; -} - namespace Swift { class QtSoundPlayer : public QObject, public SoundPlayer { - Q_OBJECT + Q_OBJECT public: QtSoundPlayer(); - ~QtSoundPlayer(); + void playSound(SoundEffect sound); - private: - Phonon::AudioOutput* audioOutput_; - Phonon::MediaObject* messageReceived_; - private slots: - void handleFinished(); }; } |