PlayMusic
From OxeyeWiki
|
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)