-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsd_comm.h
50 lines (38 loc) · 1.03 KB
/
sd_comm.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
#ifndef __SD_COMM_H__
#define __SD_COMM_H__
#ifdef ENABLE_AUDIO
typedef enum {
sdm_Off,
sdm_PC,sdm_AdLib
} SDMode;
typedef enum {
smm_Off,smm_AdLib
} SMMode;
typedef enum {
sds_Off,sds_PC,sds_SoundBlaster
} SDSMode;
extern boolean AdLibPresent, SoundBlasterPresent;
extern SDMode SoundMode;
extern SDSMode DigiMode;
extern SMMode MusicMode;
extern void SD_Startup();
extern void SD_Shutdown();
extern boolean SD_PlaySound(soundnames sound);
extern void SD_StopSound(),
SD_WaitSoundDone(),
SD_StartMusic(myint music),
SD_MusicOn(),
SD_MusicOff();
extern boolean SD_SetSoundMode(SDMode mode), SD_SetMusicMode(SMMode mode);
extern word SD_SoundPlaying();
extern void SD_SetDigiDevice(SDSMode);
void PlaySoundLocGlobal(word s, myint id, fixed gx, fixed gy);
void UpdateSoundLoc(fixed x, fixed y, myint angle);
extern myint DigiMap[];
void InitDigiMap();
#else
#define SD_WaitSoundDone() do {} while(0)
#define SD_PlaySound(n) do {} while (0)
#define PlaySoundLocGlobal(s, id, gx, gy)
#endif
#endif