forked from msokalski/asciicker
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudio.h
56 lines (44 loc) · 1020 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef AUDIO_H
#define AUDIO_H
#include <stdint.h>
struct SpriteReq;
bool InitAudio();
void FreeAudio();
void CallAudio(const uint8_t* data, int size);
void AudioWalk(int foot, int volume, const SpriteReq* req, int material);
void AudioMute(bool mute);
enum AUDIO_FILE
{
// merge them all into single file, use in file markers
// prepare similar files for several armor levels
FOREST,
FOOTSTEPS,
/*
WALK_ROCK_L,
WALK_ROCK_R,
WALK_WOOD_L,
WALK_WOOD_R,
WALK_DIRT_L,
WALK_DIRT_R,
WALK_GRASS_L,
WALK_GRASS_R,
WALK_BUSH_L,
WALK_BUSH_R,
WALK_BLOOD_L,
WALK_BLOOD_R,
WALK_WATER_L,
WALK_WATER_R,
*/
AUDIO_FILES
};
int GetSampleID(AUDIO_FILE af);
// is this right direction?
/*
void SetAudioSteps(int num_steps, int contact);
void SetAudioWingsFreq(int freq);
void SetAudioSwoosh(int speed, int contact);
void SetAudioJump(int contact, bool end);
void SetAudioShoot(int contact);
void SetAudioWater(int height, int speed);
*/
#endif