diff options
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtSoundPlayer.cpp | 4 | ||||
-rw-r--r-- | Swift/QtUI/QtSoundPlayer.h | 1 |
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); |