-
Notifications
You must be signed in to change notification settings - Fork 0
/
audio.h
30 lines (24 loc) · 809 Bytes
/
audio.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef AUDIO_H
#define AUDIO_H
#include <SDL2/SDL_mixer.h>
extern Mix_Chunk * sfx_enemy_hit;
extern Mix_Chunk * sfx_enemy_gib;
extern Mix_Chunk * sfx_enemy_hound_attack;
extern Mix_Chunk * sfx_no_ammo;
extern Mix_Chunk * sfx_hurt;
extern Mix_Chunk * sfx_pickup;
extern Mix_Chunk * sfx_plasma_shoot;
extern Mix_Chunk * sfx_shotgun_shoot;
extern Mix_Chunk * sfx_shotgun_reload;
extern Mix_Chunk * sfx_nailgun_shoot;
extern Mix_Chunk * sfx_nailgun_hit;
extern Mix_Chunk * sfx_grenade_shoot;
extern Mix_Chunk * sfx_grenade_bounce;
extern Mix_Chunk * sfx_grenade_explode;
extern Mix_Music * song;
void audio_init();
void audio_play(Mix_Chunk * c);
void audio_play_opt(Mix_Chunk * c, float volume, int32_t loops, float pan);
uint32_t audio_schedule(uint32_t interval, void *param);
void audio_free();
#endif