PlayMusic routine

TURBU

PlayMusic routine

 

Changes the background music.

 

Syntax

 

procedure playMusic(name: string; time, volume, tempo, balance: word);

 

Description

 

This routine changes the current background music to the song specified by name.  No path or file extension is necessary; the engine will automatically search in the appropriate folders for background music, and check all valid music extensions.  If the time parameter is greater than 0, the song will fade in over that many milliseconds.  The volume parameter tells what percentage of the maximum volume the song will play at.

NOTE:  The tempo and balance parameters are not currently implemented, due to technical limitations.

WARNING:  Playback of certain MIDI files will be delayed by the MIDI lead-in issue.

 

Related Topics

fadeOutMusic routine

memorizeBgm routine

This help file was created with the free trial version of HelpScribble.