summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-21 07:55:22 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-21 07:55:22 (GMT)
commitbbb8227780c0faff81cab2ff91f4418c04b72ad1 (patch)
tree45360e0e9ce9a50e82593aa3e52b766a7c8cba6e /Swift/QtUI
parent7d40d96d71678af014877369a1f431e72dd69b5d (diff)
downloadswift-bbb8227780c0faff81cab2ff91f4418c04b72ad1.zip
swift-bbb8227780c0faff81cab2ff91f4418c04b72ad1.tar.bz2
Added SoundPlayer::isAvailable.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtSoundPlayer.cpp4
-rw-r--r--Swift/QtUI/QtSoundPlayer.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSoundPlayer.cpp b/Swift/QtUI/QtSoundPlayer.cpp
index 7fd6564..9860bc2 100644
--- a/Swift/QtUI/QtSoundPlayer.cpp
+++ b/Swift/QtUI/QtSoundPlayer.cpp
@@ -34,4 +34,8 @@ void QtSoundPlayer::playSound(const String& soundResource) {
}
}
+bool QtSoundPlayer::isAvailable() const {
+ return QSound::isAvailable();
+}
+
}
diff --git a/Swift/QtUI/QtSoundPlayer.h b/Swift/QtUI/QtSoundPlayer.h
index 21ad8bb..da6fdda 100644
--- a/Swift/QtUI/QtSoundPlayer.h
+++ b/Swift/QtUI/QtSoundPlayer.h
@@ -20,6 +20,7 @@ namespace Swift {
QtSoundPlayer(ApplicationPathProvider* applicationPathProvider);
void playSound(SoundEffect sound);
+ bool isAvailable() const;
private:
void playSound(const String& soundResource);