Music

Represents a piece of music that can be played by streaming

Only one piece of music can be played at once

Constructors

this
this()
Undocumented in source.
this
this(string path)

Load the music clip from a path

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

fadeOut
void fadeOut(int ms)

Fade the music out over a given number of milliseconds

pause
void pause()

Pause the music

play
void play(int times)

Play a song a given number of times

resume
void resume()

Resume the music from pause

stop
void stop()

Stop the music

Properties

volume
int volume [@property getter]

Get the volume of the music channel

volume
int volume [@property setter]

Set the volume of the music channel

Meta