Music

Represents a piece of music that can be played by streaming

Only one piece of music can be played at once

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Constructors

this
this(string path)

Load the music clip from a path

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

Copying this object is disabled.

A postblit is present on this object, but not explicitly documented in the 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(in int times = 1)

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