@MUSIC id, filename$[, table]
The third argument is optional. It is a table that can be used to set further options for the loading operation. The following fields of the table can be used:
Link:False if you do not want to have this music file
linked to your executable/applet when you compile your script.
This field defaults to True which means that the music file is linked
to your executable/applet when Hollywood is in compile mode.
Loader:
Adapter:
UserTags:
TimedProtracker:True, Protracker modules won't be set to infinite looping
but they will just play once, unless you use the Times tag in PlayMusic()
to specify how many times the Protracker module shall be played of course. If
TimedProtracker is set to True, Hollywood will also calculate the song length and
you can query it using #ATTRDURATION. Furthermore, it is possible to seek to a certain
position in the Protracker module using SeekMusic(). Finally, if TimedProtracker
is set to True, Hollywood will also trigger the OnMusicEnd event handler once a
Protracker module has finished playing. Defaults to False. (V11.0)
Music formats that are supported on all platforms are RIFF WAVE, IFF 8SVX, IFF 16SV, Protracker modules, and formats you have a plugin for. Depending on the platform Hollywood is running on, more music formats might be supported. For example, on Windows, Hollywood supports all formats that DirectShow can load, and on macOS, all formats recognized by Apple's AudioFile interface are supported.
If you want to open the music file manually, please use the OpenMusic() command.
@MUSIC 1, "TurricanII_Remix.mod"The code above opens "TurricanII_Remix.mod" so that it can be played later using PlayMusic().