diff options
Diffstat (limited to 'src/sound.h')
-rw-r--r-- | src/sound.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound.h b/src/sound.h index 34490d9a..ebcd6442 100644 --- a/src/sound.h +++ b/src/sound.h @@ -65,7 +65,7 @@ class Sound { * @param path The full path to the music file. * @param loop The number of times the song is played (-1 = infinite) */ - void playMusic(const char *path, int loop = -1); + void playMusic(const std::string &path, int loop = -1); /** * Stops currently running background music track. @@ -79,7 +79,8 @@ class Sound { * @param loop The number of times the song is played (-1 = infinite) * @param ms Duration of fade-in effect (ms) */ - void fadeInMusic(const char *path, int loop = -1, int ms = 2000); + void fadeInMusic(const std::string &path, int loop = -1, + int ms = 2000); /** * Fades out currently running background music track. |