SetPlayList

Category: Music
Since engine version: 4.9.1.0 GWE

Description

Sets the play list of pieces of music to be played in random order, if music is activated. The actual number of pieces of music in the playlist is returned, or 0 in network mode.

Syntax

int SetPlayList (string szPlayList);

Parameter

szPlayList:
[opt] List of pieces of music to be played. The individual file names are separated with semicolons (";"). Wildcards are expanded. When 0, the standard playlist is restored.

Remarks

SetPlayList does not activate music playback when the player has turned the music off. If the player enables music, the new playlist takes effect.
SetPlayList("*.*") is not identical to SetPlayList(). The former activates all music, the latter only those not starting with "@", the standard behavior.
See also: Music
PeterW, Januar 2003