Nuclide
Software Development Kit for id Tech
music.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2022 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
33/* we're forced to support a few different paths */
34typedef enum
35{
40
41string g_steamhltracks[27] = {
42 "media/Half-Life01.mp3",
43 "media/Prospero01.mp3",
44 "media/Half-Life12.mp3",
45 "media/Half-Life07.mp3",
46 "media/Half-Life10.mp3",
47 "media/Suspense01.mp3",
48 "media/Suspense03.mp3",
49 "media/Half-Life09.mp3",
50 "media/Half-Life02.mp3",
51 "media/Half-Life13.mp3",
52 "media/Half-Life04.mp3",
53 "media/Half-Life15.mp3",
54 "media/Half-Life14.mp3",
55 "media/Half-Life16.mp3",
56 "media/Suspense02.mp3",
57 "media/Half-Life03.mp3",
58 "media/Half-Life08.mp3",
59 "media/Prospero02.mp3",
60 "media/Half-Life05.mp3",
61 "media/Prospero04.mp3",
62 "media/Half-Life11.mp3",
63 "media/Half-Life06.mp3",
64 "media/Prospero03.mp3",
65 "media/Half-Life17.mp3",
66 "media/Prospero05.mp3",
67 "media/Suspense05.mp3",
68 "media/Suspense07.mp3"
69};
70
72
78string Music_GetPath(int id);
79
84void Music_ParseTrack(string parm);
85
90void Music_ParseLoop(string parm);
91
94void Music_MenuStart(void);
95 // end of music
void Music_ParseTrack(string parm)
This function is called by EV_MUSICTRACK events.
Definition: music.qc:36
var musicstyle_t autocvar_cl_musicstyle
Definition: music.h:71
string Music_GetPath(int id)
Get the path to a single music track.
Definition: music.qc:19
musicstyle_t
Definition: music.h:35
string g_steamhltracks[27]
Definition: music.h:41
void Music_ParseLoop(string parm)
This function is called by EV_MUSICLOOP events.
Definition: music.qc:49
void Music_MenuStart(void)
Called once when the menu is initialized.
Definition: music.qc:61
@ MUSIC_FLAC
Free-Lossless-Audio-Codec requires fteplug_ffmpeg.
Definition: music.h:37
@ MUSIC_STEAMHL
MP3 tracks in the naming conventions of Steam Half-Life (2003)
Definition: music.h:38
@ MUSIC_AUTO
Auto selection (default).
Definition: music.h:36