summaryrefslogtreecommitdiff
path: root/src/sound.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-03 13:32:07 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-03 13:32:07 +0000
commit092bf185fc056338bcde2749a304e576edf342fd (patch)
tree7f5c6424998ba44f8732ec12d07f315297d8e49f /src/sound.h
parent100d02440e6715b7e02867b84fed759ed4258c73 (diff)
downloadmana-092bf185fc056338bcde2749a304e576edf342fd.tar.gz
mana-092bf185fc056338bcde2749a304e576edf342fd.tar.bz2
mana-092bf185fc056338bcde2749a304e576edf342fd.tar.xz
mana-092bf185fc056338bcde2749a304e576edf342fd.zip
Don't try to play empty strings as sounds, and don't return a SoundEffect
instance when Mix_Chunk loading failed.
Diffstat (limited to 'src/sound.h')
-rw-r--r--src/sound.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sound.h b/src/sound.h
index 39901121..07db0587 100644
--- a/src/sound.h
+++ b/src/sound.h
@@ -26,6 +26,8 @@
#include <SDL_mixer.h>
+#include <string>
+
/** Sound engine
*
* \ingroup CORE
@@ -105,7 +107,7 @@ class Sound {
*
* \param path Full path to file
*/
- void playSfx(const char *path);
+ void playSfx(const std::string &path);
private:
bool mInstalled;