diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-01-29 23:07:47 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-01-29 23:07:47 +0000 |
commit | a4e31503633c3029cb6c526275bc34d471a3c0d4 (patch) | |
tree | bab69782d480aaefb527bc07ad2f9730353a0279 /src/sound.h | |
parent | 457ce3e7b4a869f92d8aef31bdee1b6793587a93 (diff) | |
download | mana-a4e31503633c3029cb6c526275bc34d471a3c0d4.tar.gz mana-a4e31503633c3029cb6c526275bc34d471a3c0d4.tar.bz2 mana-a4e31503633c3029cb6c526275bc34d471a3c0d4.tar.xz mana-a4e31503633c3029cb6c526275bc34d471a3c0d4.zip |
Some trivial documentation work. Fixes all Doxygen warnings.
Diffstat (limited to 'src/sound.h')
-rw-r--r-- | src/sound.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/sound.h b/src/sound.h index 07db0587..ebcd6442 100644 --- a/src/sound.h +++ b/src/sound.h @@ -62,10 +62,10 @@ class Sound { /** * Starts background music. * - * \param in Full path to file - * \param loop The number of times the song is played (-1 = infinite) + * @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. @@ -75,37 +75,38 @@ class Sound { /** * Fades in background music. * - * \param in Full path to file - * \param loop The number of times the song is played (-1 = infinite) - * \param ms Duration of fade-in effect (ms) + * @param path The full path to the music file. + * @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. * - * \param ms Duration of fade-out effect (ms) + * @param ms Duration of fade-out effect (ms) */ void fadeOutMusic(int ms); /** * Sets music volume. * - * \param volume Volume value + * @param volume Volume value */ void setMusicVolume(int volume); /** * Sets sfx volume. * - * \param volume Volume value + * @param volume Volume value */ void setSfxVolume(int volume); /** * Plays an item. * - * \param path Full path to file + * @param path The resource path to the sound file. */ void playSfx(const std::string &path); |