Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (38 sloc) 1.059 kb
95189b3 Import
paul authored
1 #ifndef __SD_COMM_H__
2 #define __SD_COMM_H__
3
256877a Remove more audio code.
paul authored
4 #ifdef ENABLE_AUDIO
95189b3 Import
paul authored
5 typedef enum {
6 sdm_Off,
7 sdm_PC,sdm_AdLib
8 } SDMode;
9 typedef enum {
10 smm_Off,smm_AdLib
11 } SMMode;
12 typedef enum {
13 sds_Off,sds_PC,sds_SoundBlaster
14 } SDSMode;
15
16 extern boolean AdLibPresent, SoundBlasterPresent;
17
18 extern SDMode SoundMode;
19 extern SDSMode DigiMode;
20 extern SMMode MusicMode;
21
22 extern void SD_Startup();
23 extern void SD_Shutdown();
24
25 extern boolean SD_PlaySound(soundnames sound);
26 extern void SD_StopSound(),
27 SD_WaitSoundDone(),
0933d39 Reduce object memory use.
paul authored
28 SD_StartMusic(myint music),
95189b3 Import
paul authored
29 SD_MusicOn(),
30 SD_MusicOff();
31
32 extern boolean SD_SetSoundMode(SDMode mode), SD_SetMusicMode(SMMode mode);
33
34 extern word SD_SoundPlaying();
35
36 extern void SD_SetDigiDevice(SDSMode);
37
0933d39 Reduce object memory use.
paul authored
38 void PlaySoundLocGlobal(word s, myint id, fixed gx, fixed gy);
39 void UpdateSoundLoc(fixed x, fixed y, myint angle);
95189b3 Import
paul authored
40
41
0933d39 Reduce object memory use.
paul authored
42 extern myint DigiMap[];
95189b3 Import
paul authored
43 void InitDigiMap();
256877a Remove more audio code.
paul authored
44 #else
45 #define SD_WaitSoundDone() do {} while(0)
46 #define SD_PlaySound(n) do {} while (0)
47 #define PlaySoundLocGlobal(s, id, gx, gy)
48 #endif
95189b3 Import
paul authored
49
50 #endif
Something went wrong with that request. Please try again.