PlayMusic

From OxeyeWiki

Revision as of 13:46, 18 January 2010 by Thewreck (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

audio.playMusic(musicFilename [, volume, [repeat]])

Plays an audio file, globally, once.

Parameter Expected Type Description
musicFilename A string The name of the music file, relative to the source folder. The name is case sensitive on Mac OS X.
volume A number Volume of the played music file, maximum is 1.
repeat A boolean true if the music should repeat.
Returns

Returns nothing.

Daisymoon Audio Lib

Example

   audio.playMusic("intro.ogg")

   audio.playMusic("music/boss.ogg", 0.75, true)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox