|  | Nuclide
    Software Development Kit for id Technology (BETA) | 
Music looping, stinger related functions. More...
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).
| Functions | |
| string | Music_GetPath (int id) | 
| Get the path to a single music track. | |
| void | Music_ParseTrack (string parm) | 
| This function is called by EV_MUSICTRACK events. | |
| void | Music_ParseLoop (string parm) | 
| This function is called by EV_MUSICLOOP events. | |
| void | Music_MenuStart (void) | 
| Called once when the menu is initialized. | |
| Enumerations | |
| enum | musicstyle_t { MUSIC_AUTO , MUSIC_FLAC , MUSIC_STEAMHL } | 
| Variables | |
| string | g_steamhltracks [27] | 
| var musicstyle_t | autocvar_cl_musicstyle = MUSIC_AUTO | 
| 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. | 
| void Music_MenuStart | ( | void | ) | 
Called once when the menu is initialized.
Will start playing whatever track is defined in the manifest or liblist file.
| void Music_ParseLoop | ( | string | parm | ) | 
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. | 
| void Music_ParseTrack | ( | string | parm | ) | 
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. | 
| enum musicstyle_t | 
| var musicstyle_t autocvar_cl_musicstyle = MUSIC_AUTO | 
| string g_steamhltracks[27] |