Nuclide
Software Development Kit for id Tech
music.qc File Reference

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...
 

Function Documentation

◆ Music_GetPath()

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/.

Parameters
idThe music track in question.
Returns
Path to the music track.

◆ Music_MenuStart()

void Music_MenuStart ( void  )

Called once when the menu is initialized.

Will start playing whatever track is defined in the manifest or liblist file.

◆ Music_ParseLoop()

void Music_ParseLoop ( string  parm)

This function is called by EV_MUSICLOOP events.

Will play a music track that loops.

Parameters
parmThe music track in question. Mostly a track number.

◆ Music_ParseTrack()

void Music_ParseTrack ( string  parm)

This function is called by EV_MUSICTRACK events.

Will play a single music track once.

Parameters
parmThe music track in question. Mostly a track number.