Music

A stream of audio that can be played

Constructors

this
this(string file)

Construct a sound from a file path

this
this(AudioStream stream)

Construct a sound

Destructor

~this
~this()
Undocumented in source.

Members

Functions

getInfo
AudioInfo getInfo()

Get info about the music

isPlaying
bool isPlaying()

Gets whether a song is currently playing

pause
void pause()

Pause the song

play
void play(float gain, float pitch)

Play sound

setGain
void setGain(float gain)

Set the pitch of this music

setLooping
void setLooping(bool loop)

Set the pitch of this music

setPitch
void setPitch(float pitch)

Set the pitch of this music

stop
void stop()

Stop sound

Meta