{{fbdoc item="title" value="MUSIC"}}----
Loads and controls the current music file through sfxlib.

{{fbdoc item="syntax"}}##
	//result// = **Music Load**( //filename// )
	//result// = **Music Play**()
	//result// = **Music Play**( //filename// )
	//result// = **Music Loop**()
	//result// = **Music Loop**( //filename// )
	**Music Pause**
	**Music Resume**
	**Music Stop**
	//status// = **Music Status**()
	//position// = **Music Position**()
##
{{fbdoc item="desc"}}
	##**Music**## is the one-current-track file playback interface.  ##Music Load## loads a file as the current music and replaces any previous music.  ##Music Play## and ##Music Loop## start the current music when called without a filename, or load and start the supplied filename directly.

	##Music Pause##, ##Music Resume##, and ##Music Stop## control the current music.  ##Music Status## returns ##0## for stopped, ##1## for playing, and ##2## for paused.  ##Music Position## returns the current playback position in frames.

{{fbdoc item="ex"}}
	See ##examples/sfxlib/music-load.bas##, ##examples/sfxlib/music-play.bas##, ##examples/sfxlib/music-loop.bas##, and ##examples/sfxlib/showcase.bas##.

{{fbdoc item="diff"}}
	- New to ""FreeBASIC"".

{{fbdoc item="see"}}
	- ##[[KeyPgSfx|Sfx]]##

{{fbdoc item="back" value="CatPgSfx|Sound Library Reference"}}
