1 #include "wavesounds.h"
2 #if AUDIO_BACKEND == AUDIO_BACKEND_NONE
3 #define WAVSOUND(x, y) [x] = 0
5 #include "sounds/pistol.c"
6 #include "sounds/gun.c"
7 #include "sounds/machinegun.c"
8 #include "sounds/flamethrower.c"
9 #include "sounds/grenade_sound.c"
10 #include "sounds/scream.c"
11 #include "sounds/scream2.c"
12 #include "sounds/dropshot.c"
13 #include "sounds/countdown.c"
14 #include "sounds/missionbonus.c"
15 #include "sounds/fail.c"
16 #include "sounds/success.c"
17 #define WAVSOUND(x, y) [x] = &(y .header)
19 const WAVE_HEADER_COMPLETE
* wavesounds
[] = {
21 WAVSOUND(WS_PISTOL
, pistol
),
22 WAVSOUND(WS_GUN
, gun
),
23 WAVSOUND(WS_MACHINEGUN
, machinegun
),
24 WAVSOUND(WS_FLAMETHROWER
, flamethrower
),
25 WAVSOUND(WS_GRENADE_EXPLOSION
, grenade_sound
),
26 WAVSOUND(WS_SCREAM
, scream
),
27 WAVSOUND(WS_SCREAM2
, scream2
),
28 WAVSOUND(WS_DROPSHOT
, dropshot
),
29 WAVSOUND(WS_COUNTDOWN
, countdown
),
30 WAVSOUND(WS_MISSIONBONUS
, missionbonus
),
31 WAVSOUND(WS_FAIL
, fail
),
32 WAVSOUND(WS_SUCCESS
, success
),