vx.Music

From vx
Jump to: navigation, search

[edit] vx.Music

  • A singleton object that handles the "simple" music interaction. Any music set to load when a map starts by a .map file must be managed through here.

[edit] Notes

As this is an internal object, you cannot create your own music instance. This just represents the type of an object in the vx library. Just use the variable vx.music to use this.

For more sophisticated music handling, use vx.Song instead.

[edit] Methods

vx.Music:Play(filename)

  • Changes the active music to the specified file.

vx.Music:Stop()

  • Stops the actively playing music

vx.Music:SetVolume(volume)

  • Changes the music volume to the value specified.
Personal tools