Sound

A sound

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

play
void play(float gain, float pitch, vec3 position)

Play sound

setGain
void setGain(float gain)
Undocumented in source. Be warned that the author may not have intended to support it.
setPitch
void setPitch(float pitch)
Undocumented in source. Be warned that the author may not have intended to support it.
stop
void stop()

Stop sound

Meta