-
Notifications
You must be signed in to change notification settings - Fork 0
/
win_sound.h
47 lines (34 loc) · 956 Bytes
/
win_sound.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
#define MIKMOD_STATIC 1
#include "mikmod.h"
#include "mdsfx.h"
extern char playingsng[];
extern bool UseSound;
typedef struct SampleCacheList
{ MD_SAMPLE *handle;
CHAR *name;
struct SampleCacheList *prev, *next;
} SampleCacheList;
typedef struct SampleCache
{ SampleCacheList *list;
} SampleCache;
extern SampleCache *VCsounds;
extern MD_SAMPLE *samples[100];
extern int vcsamples;
void SuspendMusic();
void ResumeMusic();
void InitSound();
void PlayMusic(const char *sng, bool cache);
void StopMusic();
void ResetMusic();
SampleCache *NewSampleCache(void);
void DeleteSampleCache(SampleCache *sbank);
MD_SAMPLE *CacheSample(SampleCache *sbank, const char *si);
void FreeAllSamples(void);
int PlaySample(MD_SAMPLE *s);
int PlayMenuSample(MD_SAMPLE *s);
int s_getmusicvolume();
void s_setmusicvolume(int);
void CacheMusic(const char *sng);
void s_CacheStartSession(void);
void s_CacheStopSession(void);
void UpdateSound(void);