1
2 // I_SOUND.C
3
4 #include <stdio.h>
5 #include "h2def.h"
6 #include "sounds.h"
7
8 /*
9 ===============
10 =
11 = I_StartupTimer
12 =
13 ===============
14 */
15
I_StartupTimer(void)16 void I_StartupTimer (void)
17 {
18
19 }
20
I_ShutdownTimer(void)21 void I_ShutdownTimer (void)
22 {
23
24 }
25
26 /*
27 *
28 * SOUND HEADER & DATA
29 *
30 *
31 */
32
33 // sound information
34 #if 0
35 const char *dnames[] = {"None",
36 "PC_Speaker",
37 "Adlib",
38 "Sound_Blaster",
39 "ProAudio_Spectrum16",
40 "Gravis_Ultrasound",
41 "MPU",
42 "AWE32"
43 };
44 #endif
45
46 const char snd_prefixen[] = { 'P', 'P', 'A', 'S', 'S', 'S', 'M',
47 'M', 'M', 'S' };
48
49 int snd_Channels;
50 int snd_DesiredMusicDevice, snd_DesiredSfxDevice;
51 int snd_MusicDevice, // current music card # (index to dmxCodes)
52 snd_SfxDevice, // current sfx card # (index to dmxCodes)
53 snd_MaxVolume, // maximum volume for sound
54 snd_MusicVolume; // maximum volume for music
55
56 int snd_SBport, snd_SBirq, snd_SBdma; // sound blaster variables
57 int snd_Mport; // midi variables
58
59 extern boolean snd_MusicAvail, // whether music is available
60 snd_SfxAvail; // whether sfx are available
61
I_PauseSong(int handle)62 void I_PauseSong(int handle)
63 {
64 }
65
S_StartSong(int song,boolean loop)66 void S_StartSong(int song,boolean loop) {
67 }
68
S_GetChannelInfo(SoundInfo_t * s)69 void S_GetChannelInfo(SoundInfo_t *s)
70 {
71 int i;
72 ChanInfo_t *c;
73
74 s->channelCount = 0;
75 s->musicVolume = 0;
76 s->soundVolume = 0;
77 /* for(i = 0; i < snd_Channels; i++)
78 {
79 c = &s->chan[i];
80 c->id = channel[i].sound_id;
81 c->priority = channel[i].priority;
82 c->name = S_sfx[c->id].name;
83 c->mo = channel[i].mo;
84 c->distance = P_AproxDistance(c->mo->x-viewx, c->mo->y-viewy)
85 >>FRACBITS;
86 }*/
87 }
88
S_SetMaxVolume(boolean fullprocess)89 void S_SetMaxVolume(boolean fullprocess) {
90
91 }
92
S_StartSound(mobj_t * origin,int sound_id)93 void S_StartSound(mobj_t *origin, int sound_id)
94 {
95 }
96
S_StartSoundAtVolume(mobj_t * origin,int sound_id,int vol)97 void S_StartSoundAtVolume(mobj_t *origin, int sound_id,int vol)
98 {
99 }
100
S_SetMusicVolume(void)101 void S_SetMusicVolume(void) {
102 }
103
S_Start(void)104 void S_Start(void) {
105 }
106
S_StopSound(mobj_t * origin)107 void S_StopSound(mobj_t *origin) {
108 }
109
S_ResumeSound(void)110 void S_ResumeSound(void) {
111 }
112
S_UpdateSounds(mobj_t * listener)113 void S_UpdateSounds(mobj_t *listener) {
114 }
115
S_PauseSound(void)116 void S_PauseSound(void) {
117 }
118
S_StartSongName(char * songLump,boolean loop)119 void S_StartSongName(char *songLump, boolean loop)
120 {
121 }
122
123
124
I_ResumeSong(int handle)125 void I_ResumeSong(int handle)
126 {
127 }
128
I_SetMusicVolume(int volume)129 void I_SetMusicVolume(int volume)
130 {
131 }
132
I_SetSfxVolume(int volume)133 void I_SetSfxVolume(int volume)
134 {
135 }
136
137 /*
138 *
139 * SONG API
140 *
141 */
142
I_RegisterSong(void * data)143 int I_RegisterSong(void *data)
144 {
145 return -1;
146 }
147
I_UnRegisterSong(int handle)148 void I_UnRegisterSong(int handle)
149 {
150 }
151
I_QrySongPlaying(int handle)152 int I_QrySongPlaying(int handle)
153 {
154 return -1;
155 }
156
157 // Stops a song. MUST be called before I_UnregisterSong().
158
I_StopSong(int handle)159 void I_StopSong(int handle)
160 {
161 }
162
I_PlaySong(int handle,int loop)163 void I_PlaySong(int handle, int loop)
164 {
165 }
166
167 /*
168 *
169 * SOUND FX API
170 *
171 */
172
173 // Gets lump nums of the named sound. Returns pointer which will be
174 // passed to I_StartSound() when you want to start an SFX. Must be
175 // sure to pass this to UngetSoundEffect() so that they can be
176 // freed!
177
178
I_GetSfxLumpNum(sfxinfo_t * sound)179 int I_GetSfxLumpNum(sfxinfo_t *sound)
180 {
181 return W_GetNumForName(sound->lumpname);
182 }
183
I_StartSound(int id,void * data,int vol,int sep,int pitch,int priority)184 int I_StartSound (int id, void *data, int vol, int sep, int pitch, int priority)
185 {
186 return -1;
187 }
188
I_StopSound(int handle)189 void I_StopSound(int handle)
190 {
191 }
192
I_SoundIsPlaying(int handle)193 int I_SoundIsPlaying(int handle)
194 {
195 return 0;
196 }
197
I_UpdateSoundParams(int handle,int vol,int sep,int pitch)198 void I_UpdateSoundParams(int handle, int vol, int sep, int pitch)
199 {
200 }
201
202 /*
203 *
204 * SOUND STARTUP STUFF
205 *
206 *
207 */
208
209
210 // inits all sound stuff
211
I_StartupSound(void)212 void I_StartupSound (void)
213 {
214 }
215
216 // shuts down all sound stuff
217
I_ShutdownSound(void)218 void I_ShutdownSound (void)
219 {
220 }
221
I_SetChannels(int channels)222 void I_SetChannels(int channels)
223 {
224 }
225
S_GetSoundPlayingInfo(mobj_t * mobj,int sound_id)226 boolean S_GetSoundPlayingInfo(mobj_t *mobj, int sound_id) {
227 return false;
228 }
229
S_GetSoundID(char * name)230 int S_GetSoundID(char *name) {
231 return 0;
232 }
233
S_StopAllSound(void)234 void S_StopAllSound(void) {
235 }
236