From 092bf185fc056338bcde2749a304e576edf342fd Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 3 Dec 2006 13:32:07 +0000 Subject: Don't try to play empty strings as sounds, and don't return a SoundEffect instance when Mix_Chunk loading failed. --- src/sound.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sound.h') 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 +#include + /** 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; -- cgit v1.2.3-70-g09d2