UGDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Friends
ugdk::Music Class Reference

#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

bool ugdk::Music::IsPaused ( ) const

Return whether this can be unpaused.

bool ugdk::Music::IsPlaying ( ) const

Return whether this music is playing or not.

Pauses the music, allowing it to be resumed from the same point.

Plays this music once.

void ugdk::Music::Play ( int  loops)

Plays this music the given number of times.

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:
vol0.0 (quiet) <= vol <= 1.0 (loud)

Stops playing this music.

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.


Friends And Related Function Documentation

friend class AudioManager [friend]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines