BYOND Environment This page contains an entry from the official DM Reference.

A sound stored in a file may be referenced by putting single quotes around the filename. The file extension determines the type of sound. Currently supported music types include MIDI (.mid or .midi), and module formats .mod, .it, .s3m, .xm, and .oxm. Supported sound effect formats include .wav, .ogg, .raw, .wma, and .aiff.*


world << sound('fugue.midi')

This example plays the specified midi file to all players.

*The MP3 format is not presently supported by BYOND due to licensing issues. Ogg-Vorbis, however, is a good alternative. For music the module formats are also a good choice, and tend to be smaller.

See alsoEdit

Pager envelope This page is a snippet. You can help by adding more sections with relevant information.