Skip to content

Commit

Permalink
Documentation|libgui: More info about Sound::play()
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 1, 2014
1 parent 3959c6e commit 28382dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doomsday/libgui/include/de/audio/sound.h
Expand Up @@ -66,7 +66,13 @@ class Sound
* Starts playing the sound. If the sound is already playing, does nothing:
* to change the playing mode, one has to first stop the sound.
*
* @param mode Playing mode.
* @param mode Playing mode:
* - Sound::Once: Play once, after which the sound gets automatically
* deleted. The caller is expected to observe the Sound instance
* for deletion or not retain a reference to it.
* - Sound::OnceDontDelete: Play once, after which the sound remains
* in a paused state. The sound can then be restarted later.
* - Sound::Looping: Play and keep looping indefinitely.
*/
virtual void play(PlayingMode mode = Once) = 0;

Expand Down

0 comments on commit 28382dc

Please sign in to comment.