]> icculus.org git repositories - divverent/darkplaces.git/blob - snd_null.c
Removed some bugs (I forget to change a few pr_argc to prog->argc)
[divverent/darkplaces.git] / snd_null.c
1 /*
2
3 Copyright (C) 1996-1997 Id Software, Inc.
4
5
6
7 This program is free software; you can redistribute it and/or
8
9 modify it under the terms of the GNU General Public License
10
11 as published by the Free Software Foundation; either version 2
12
13 of the License, or (at your option) any later version.
14
15
16
17 This program is distributed in the hope that it will be useful,
18
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22
23
24
25 See the GNU General Public License for more details.
26
27
28
29 You should have received a copy of the GNU General Public License
30
31 along with this program; if not, write to the Free Software
32
33 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
34
35
36
37 */
38
39 // snd_null.c -- include this instead of all the other snd_* files to have
40
41 // no sound code whatsoever
42
43
44
45 #include "quakedef.h"
46
47
48
49 cvar_t bgmvolume = {CVAR_SAVE, "bgmvolume", "1"};
50
51 cvar_t volume = {CVAR_SAVE, "volume", "0.7"};
52
53 cvar_t snd_staticvolume = {CVAR_SAVE, "snd_staticvolume", "1"};
54
55
56
57 qboolean snd_initialized = false;
58
59
60
61 void S_Init (void)
62
63 {
64
65         Cvar_RegisterVariable(&bgmvolume);
66
67         Cvar_RegisterVariable(&volume);
68
69         Cvar_RegisterVariable(&snd_staticvolume);
70
71 }
72
73
74
75 void S_AmbientOff (void)
76
77 {
78
79 }
80
81
82
83 void S_AmbientOn (void)
84
85 {
86
87 }
88
89
90
91 void S_Startup (void)
92
93 {
94
95 }
96
97
98
99 void S_Shutdown (void)
100
101 {
102
103 }
104
105
106
107 void S_TouchSound (char *sample)
108
109 {
110
111 }
112
113
114
115 void S_ClearBuffer (void)
116
117 {
118
119 }
120
121
122
123 void S_StaticSound (sfx_t *sfx, vec3_t origin, float vol, float attenuation)
124
125 {
126
127 }
128
129
130
131 void S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float fvol,  float attenuation)
132
133 {
134
135 }
136
137
138
139 void S_StopSound (int entnum, int entchannel)
140
141 {
142
143 }
144
145
146
147 sfx_t *S_GetCached(const char *name)
148
149 {
150
151         return NULL;
152
153 }
154
155
156
157 sfx_t *S_PrecacheSound (char *sample, int complain)
158
159 {
160
161         return NULL;
162
163 }
164
165
166
167 void S_ClearPrecache (void)
168
169 {
170
171 }
172
173
174
175 void S_Update (vec3_t origin, vec3_t v_forward, vec3_t v_right, vec3_t v_up)
176
177 {
178
179 }
180
181
182
183 void S_StopAllSounds (qboolean clear)
184
185 {
186
187 }
188
189
190
191 void S_BeginPrecaching (void)
192
193 {
194
195 }
196
197
198
199 void S_EndPrecaching (void)
200
201 {
202
203 }
204
205
206
207 void S_ExtraUpdate (void)
208
209 {
210
211 }
212
213
214
215 void S_LocalSound (char *s)
216
217 {
218
219 }
220
221
222
223 void S_RawSamples_Enqueue(short *samples, unsigned int length)
224
225 {
226
227 }
228
229
230
231 void S_RawSamples_Dequeue(int *samples, unsigned int length)
232
233 {
234
235 }
236
237
238
239 void S_RawSamples_ClearQueue(void)
240
241 {
242
243 }
244
245
246
247 int S_RawSamples_QueueWantsMore(void)
248
249 {
250
251         return 0;
252
253 }
254
255
256
257 void S_ResampleBuffer16Stereo(short *input, int inputlength, short *output, int outputlength)
258
259 {
260
261 }
262
263
264
265 int S_RawSamples_SampleRate(void)
266
267 {
268
269         return 0;
270
271 }
272
273
274