Nuclide
Software Development Kit for id Tech
|
Music looping, stinger related functions. More...
Enumerations | |
enum | musicstyle_t { MUSIC_AUTO , MUSIC_FLAC , MUSIC_STEAMHL } |
Functions | |
string | Music_GetPath (int id) |
Get the path to a single music track. More... | |
void | Music_ParseTrack (string parm) |
This function is called by EV_MUSICTRACK events. More... | |
void | Music_ParseLoop (string parm) |
This function is called by EV_MUSICLOOP events. More... | |
void | Music_MenuStart (void) |
Called once when the menu is initialized. More... | |
Variables | |
string | g_steamhltracks [27] |
var musicstyle_t | autocvar_cl_musicstyle = MUSIC_AUTO |
Music looping, stinger related functions.
This is the internal music handler. Games primarily will use in-game entities such as trigger_cdaudio and target_cdaudio to play/change music tracks.
This is the code that handles how music track id's are translated into different path/naming conventions and file formats.
Some tracks may only want to be played once (as opposed to looping).
enum musicstyle_t |
string Music_GetPath | ( | int | id | ) |
Get the path to a single music track.
Some installs may have the music in media/, others may be in music/.
id | The music track in question. |
Called once when the menu is initialized.
Will start playing whatever track is defined in the manifest or liblist file.
This function is called by EV_MUSICLOOP events.
Will play a music track that loops.
parm | The music track in question. Mostly a track number. |
This function is called by EV_MUSICTRACK events.
Will play a single music track once.
parm | The music track in question. Mostly a track number. |
var musicstyle_t autocvar_cl_musicstyle = MUSIC_AUTO |
string g_steamhltracks[27] |