#include <music.h>
List of all members.
Public Member Functions |
void | Play () |
| Plays this music once.
|
void | PlayForever () |
| Plays this music until told to stop.
|
void | Play (int loops) |
| Plays this music the given number of times.
|
void | Stop () |
| Stops playing this music.
|
bool | IsPlaying () const |
| Return whether this music is playing or not.
|
void | Pause () |
| Pauses the music, allowing it to be resumed from the same point.
|
void | Unpause () |
| Unpauses the music if it's the last played music.
|
bool | IsPaused () const |
| Return whether this can be unpaused.
|
void | SetVolume (double vol) |
| Sets the volume. 0.0 is quiet, 1.0 is the full volume.
|
double | Volume () |
| Returns this music's current volume, between 0.0 and 1.0.
|
Friends |
class | AudioManager |
Detailed Description
Note: This class cannot be directly instantiated. Please use AudioManager's LoadMusic.
- See also:
- AudioManager
Member Function Documentation
Return whether this can be unpaused.
Return whether this music is playing or not.
Pauses the music, allowing it to be resumed from the same point.
Plays this music the given number of times.
Plays this music until told to stop.
Sets the volume. 0.0 is quiet, 1.0 is the full volume.
- Parameters:
-
vol | 0.0 (quiet) <= vol <= 1.0 (loud) |
Stops playing this music.
Unpauses the music if it's the last played music.
Returns this music's current volume, between 0.0 and 1.0.
Friends And Related Function Documentation
The documentation for this class was generated from the following files: