#include <ugdk/audio/music.h>
|
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.
|
|
*Note: This class cannot be directly instantiated. Please use AudioManager's LoadMusic.
- See Also
- AudioManager
bool ugdk::Music::IsPaused |
( |
| ) |
const |
Return whether this can be unpaused.
bool ugdk::Music::IsPlaying |
( |
| ) |
const |
Return whether this music is playing or not.
void ugdk::Music::Pause |
( |
| ) |
|
Pauses the music, allowing it to be resumed from the same point.
void ugdk::Music::Play |
( |
| ) |
|
void ugdk::Music::Play |
( |
int |
loops | ) |
|
Plays this music the given number of times.
void ugdk::Music::PlayForever |
( |
| ) |
|
Plays this music until told to stop.
void ugdk::Music::SetVolume |
( |
double |
vol | ) |
|
Sets the volume. 0.0 is quiet, 1.0 is the full volume.
- Parameters
-
vol | 0.0 (quiet) <= vol <= 1.0 (loud) |
void ugdk::Music::Stop |
( |
| ) |
|
Stops playing this music.
void ugdk::Music::Unpause |
( |
| ) |
|
Unpauses the music if it's the last played music.
double ugdk::Music::Volume |
( |
| ) |
|
Returns this music's current volume, between 0.0 and 1.0.
The documentation for this class was generated from the following files: