slouken@0
|
1 |
/*
|
slouken@0
|
2 |
SDL - Simple DirectMedia Layer
|
slouken@1312
|
3 |
Copyright (C) 1997-2006 Sam Lantinga
|
slouken@0
|
4 |
|
slouken@0
|
5 |
This library is free software; you can redistribute it and/or
|
slouken@1312
|
6 |
modify it under the terms of the GNU Lesser General Public
|
slouken@0
|
7 |
License as published by the Free Software Foundation; either
|
slouken@1312
|
8 |
version 2.1 of the License, or (at your option) any later version.
|
slouken@0
|
9 |
|
slouken@0
|
10 |
This library is distributed in the hope that it will be useful,
|
slouken@0
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
slouken@0
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
slouken@1312
|
13 |
Lesser General Public License for more details.
|
slouken@0
|
14 |
|
slouken@1312
|
15 |
You should have received a copy of the GNU Lesser General Public
|
slouken@1312
|
16 |
License along with this library; if not, write to the Free Software
|
slouken@1312
|
17 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
slouken@0
|
18 |
|
slouken@0
|
19 |
Sam Lantinga
|
slouken@252
|
20 |
slouken@libsdl.org
|
slouken@968
|
21 |
|
slouken@968
|
22 |
Modified in Oct 2004 by Hannu Savolainen
|
slouken@968
|
23 |
hannu@opensound.com
|
slouken@0
|
24 |
*/
|
slouken@1402
|
25 |
#include "SDL_config.h"
|
slouken@0
|
26 |
|
slouken@0
|
27 |
/* Allow access to a raw mixing buffer */
|
slouken@0
|
28 |
|
slouken@1895
|
29 |
#include <stdio.h> /* For perror() */
|
slouken@1895
|
30 |
#include <string.h> /* For strerror() */
|
slouken@0
|
31 |
#include <errno.h>
|
slouken@0
|
32 |
#include <unistd.h>
|
slouken@0
|
33 |
#include <fcntl.h>
|
slouken@0
|
34 |
#include <signal.h>
|
slouken@0
|
35 |
#include <sys/time.h>
|
slouken@0
|
36 |
#include <sys/ioctl.h>
|
slouken@0
|
37 |
#include <sys/stat.h>
|
slouken@1361
|
38 |
|
slouken@1361
|
39 |
#if SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H
|
slouken@94
|
40 |
/* This is installed on some systems */
|
slouken@94
|
41 |
#include <soundcard.h>
|
slouken@94
|
42 |
#else
|
slouken@94
|
43 |
/* This is recommended by OSS */
|
slouken@0
|
44 |
#include <sys/soundcard.h>
|
slouken@94
|
45 |
#endif
|
slouken@0
|
46 |
|
slouken@1358
|
47 |
#include "SDL_timer.h"
|
slouken@0
|
48 |
#include "SDL_audio.h"
|
slouken@1361
|
49 |
#include "../SDL_audiomem.h"
|
slouken@1361
|
50 |
#include "../SDL_audio_c.h"
|
slouken@1361
|
51 |
#include "../SDL_audiodev_c.h"
|
slouken@0
|
52 |
#include "SDL_dspaudio.h"
|
slouken@0
|
53 |
|
slouken@0
|
54 |
/* The tag name used by DSP audio */
|
slouken@0
|
55 |
#define DSP_DRIVER_NAME "dsp"
|
slouken@0
|
56 |
|
slouken@0
|
57 |
/* Open the audio device for playback, and don't block if busy */
|
icculus@2049
|
58 |
#define OPEN_FLAGS_OUTPUT (O_WRONLY|O_NONBLOCK)
|
icculus@2049
|
59 |
#define OPEN_FLAGS_INPUT (O_RDONLY|O_NONBLOCK)
|
slouken@0
|
60 |
|
icculus@2049
|
61 |
static char **outputDevices = NULL;
|
icculus@2049
|
62 |
static int outputDeviceCount = 0;
|
icculus@2049
|
63 |
static char **inputDevices = NULL;
|
icculus@2049
|
64 |
static int inputDeviceCount = 0;
|
slouken@0
|
65 |
|
icculus@2049
|
66 |
static inline void
|
icculus@2049
|
67 |
free_device_list(char ***devs, int *count)
|
icculus@2049
|
68 |
{
|
icculus@2049
|
69 |
SDL_FreeUnixAudioDevices(devs, count);
|
slouken@0
|
70 |
}
|
slouken@0
|
71 |
|
icculus@2049
|
72 |
static inline void
|
icculus@2049
|
73 |
build_device_list(int iscapture, char ***devs, int *count)
|
icculus@2049
|
74 |
{
|
icculus@2049
|
75 |
const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT);
|
icculus@2049
|
76 |
free_device_list(devs, count);
|
icculus@2049
|
77 |
SDL_EnumUnixAudioDevices(flags, 0, NULL, devs, count);
|
icculus@2049
|
78 |
}
|
icculus@2049
|
79 |
|
icculus@2049
|
80 |
static inline void
|
icculus@2049
|
81 |
build_device_lists(void)
|
slouken@0
|
82 |
{
|
icculus@2049
|
83 |
build_device_list(0, &outputDevices, &outputDeviceCount);
|
icculus@2049
|
84 |
build_device_list(1, &inputDevices, &inputDeviceCount);
|
icculus@2049
|
85 |
}
|
icculus@2049
|
86 |
|
icculus@2049
|
87 |
|
icculus@2049
|
88 |
static inline void
|
icculus@2049
|
89 |
free_device_lists(void)
|
icculus@2049
|
90 |
{
|
icculus@2049
|
91 |
free_device_list(&outputDevices, &outputDeviceCount);
|
icculus@2049
|
92 |
free_device_list(&inputDevices, &inputDeviceCount);
|
icculus@2049
|
93 |
}
|
icculus@2049
|
94 |
|
icculus@2049
|
95 |
|
icculus@2049
|
96 |
static void
|
icculus@2049
|
97 |
DSP_Deinitialize(void)
|
icculus@2049
|
98 |
{
|
icculus@2049
|
99 |
free_device_lists();
|
slouken@0
|
100 |
}
|
slouken@0
|
101 |
|
icculus@2049
|
102 |
|
icculus@2049
|
103 |
static int
|
icculus@2049
|
104 |
DSP_DetectDevices(int iscapture)
|
slouken@0
|
105 |
{
|
icculus@2049
|
106 |
if (iscapture) {
|
icculus@2049
|
107 |
build_device_list(1, &inputDevices, &inputDeviceCount);
|
icculus@2049
|
108 |
return inputDeviceCount;
|
icculus@2049
|
109 |
} else {
|
icculus@2049
|
110 |
build_device_list(0, &outputDevices, &outputDeviceCount);
|
icculus@2049
|
111 |
return outputDeviceCount;
|
slouken@1895
|
112 |
}
|
slouken@0
|
113 |
|
icculus@2049
|
114 |
return 0; /* shouldn't ever hit this. */
|
slouken@0
|
115 |
}
|
slouken@0
|
116 |
|
icculus@2049
|
117 |
static const char *
|
icculus@2049
|
118 |
DSP_GetDeviceName(int index, int iscapture)
|
icculus@2049
|
119 |
{
|
icculus@2049
|
120 |
if ((iscapture) && (index < inputDeviceCount)) {
|
icculus@2049
|
121 |
return inputDevices[index];
|
icculus@2049
|
122 |
} else if ((!iscapture) && (index < outputDeviceCount)) {
|
icculus@2049
|
123 |
return outputDevices[index];
|
icculus@2049
|
124 |
}
|
slouken@0
|
125 |
|
icculus@2049
|
126 |
SDL_SetError("No such device");
|
icculus@2049
|
127 |
return NULL;
|
slouken@0
|
128 |
}
|
slouken@0
|
129 |
|
icculus@2049
|
130 |
|
slouken@1895
|
131 |
static void
|
icculus@2049
|
132 |
DSP_CloseDevice(_THIS)
|
slouken@0
|
133 |
{
|
icculus@2049
|
134 |
if (this->hidden != NULL) {
|
icculus@2049
|
135 |
if (this->hidden->mixbuf != NULL) {
|
icculus@2049
|
136 |
SDL_FreeAudioMem(this->hidden->mixbuf);
|
icculus@2049
|
137 |
this->hidden->mixbuf = NULL;
|
icculus@2049
|
138 |
}
|
icculus@2049
|
139 |
if (this->hidden->audio_fd >= 0) {
|
icculus@2049
|
140 |
close(this->hidden->audio_fd);
|
icculus@2049
|
141 |
this->hidden->audio_fd = -1;
|
icculus@2049
|
142 |
}
|
icculus@2049
|
143 |
SDL_free(this->hidden);
|
icculus@2049
|
144 |
this->hidden = NULL;
|
slouken@1895
|
145 |
}
|
slouken@0
|
146 |
}
|
slouken@0
|
147 |
|
icculus@2049
|
148 |
|
slouken@1895
|
149 |
static int
|
icculus@2049
|
150 |
DSP_OpenDevice(_THIS, const char *devname, int iscapture)
|
slouken@0
|
151 |
{
|
icculus@2049
|
152 |
const int flags = ((iscapture) ? OPEN_FLAGS_INPUT : OPEN_FLAGS_OUTPUT);
|
slouken@1895
|
153 |
int format;
|
slouken@1895
|
154 |
int value;
|
slouken@1895
|
155 |
int frag_spec;
|
icculus@1982
|
156 |
SDL_AudioFormat test_format;
|
slouken@0
|
157 |
|
icculus@2049
|
158 |
/* We don't care what the devname is...we'll try to open anything. */
|
icculus@2049
|
159 |
/* ...but default to first name in the list... */
|
icculus@2049
|
160 |
if (devname == NULL) {
|
icculus@2049
|
161 |
if ( ((iscapture) && (inputDeviceCount == 0)) ||
|
icculus@2049
|
162 |
((!iscapture) && (outputDeviceCount == 0)) ) {
|
icculus@2049
|
163 |
SDL_SetError("No such audio device");
|
icculus@2049
|
164 |
return 0;
|
icculus@2049
|
165 |
}
|
icculus@2049
|
166 |
devname = ((iscapture) ? inputDevices[0] : outputDevices[0]);
|
icculus@2049
|
167 |
}
|
icculus@2049
|
168 |
|
icculus@2049
|
169 |
/* Initialize all variables that we clean on shutdown */
|
icculus@2049
|
170 |
this->hidden = (struct SDL_PrivateAudioData *)
|
icculus@2049
|
171 |
SDL_malloc((sizeof *this->hidden));
|
icculus@2049
|
172 |
if (this->hidden == NULL) {
|
icculus@2049
|
173 |
SDL_OutOfMemory();
|
icculus@2049
|
174 |
return 0;
|
icculus@2049
|
175 |
}
|
icculus@2049
|
176 |
SDL_memset(this->hidden, 0, (sizeof *this->hidden));
|
icculus@2049
|
177 |
|
slouken@1895
|
178 |
/* Open the audio device */
|
icculus@2049
|
179 |
this->hidden->audio_fd = open(devname, flags, 0);
|
icculus@2049
|
180 |
if (this->hidden->audio_fd < 0) {
|
icculus@2049
|
181 |
DSP_CloseDevice(this);
|
icculus@2049
|
182 |
SDL_SetError("Couldn't open %s: %s", devname, strerror(errno));
|
icculus@2049
|
183 |
return 0;
|
slouken@1895
|
184 |
}
|
icculus@2049
|
185 |
this->hidden->mixbuf = NULL;
|
slouken@968
|
186 |
|
slouken@1895
|
187 |
/* Make the file descriptor use blocking writes with fcntl() */
|
slouken@1895
|
188 |
{
|
icculus@2049
|
189 |
long ctlflags;
|
icculus@2049
|
190 |
ctlflags = fcntl(this->hidden->audio_fd, F_GETFL);
|
icculus@2049
|
191 |
ctlflags &= ~O_NONBLOCK;
|
icculus@2049
|
192 |
if (fcntl(this->hidden->audio_fd, F_SETFL, ctlflags) < 0) {
|
icculus@2049
|
193 |
DSP_CloseDevice(this);
|
slouken@1895
|
194 |
SDL_SetError("Couldn't set audio blocking mode");
|
icculus@2049
|
195 |
return 0;
|
slouken@1895
|
196 |
}
|
slouken@1895
|
197 |
}
|
slouken@968
|
198 |
|
slouken@1895
|
199 |
/* Get a list of supported hardware formats */
|
icculus@2049
|
200 |
if (ioctl(this->hidden->audio_fd, SNDCTL_DSP_GETFMTS, &value) < 0) {
|
slouken@1895
|
201 |
perror("SNDCTL_DSP_GETFMTS");
|
icculus@2049
|
202 |
DSP_CloseDevice(this);
|
slouken@1895
|
203 |
SDL_SetError("Couldn't get audio format list");
|
icculus@2049
|
204 |
return 0;
|
slouken@1895
|
205 |
}
|
slouken@968
|
206 |
|
slouken@1895
|
207 |
/* Try for a closest match on audio format */
|
slouken@1895
|
208 |
format = 0;
|
icculus@2049
|
209 |
for (test_format = SDL_FirstAudioFormat(this->spec.format);
|
slouken@1895
|
210 |
!format && test_format;) {
|
slouken@968
|
211 |
#ifdef DEBUG_AUDIO
|
slouken@1895
|
212 |
fprintf(stderr, "Trying format 0x%4.4x\n", test_format);
|
slouken@968
|
213 |
#endif
|
slouken@1895
|
214 |
switch (test_format) {
|
slouken@1895
|
215 |
case AUDIO_U8:
|
slouken@1895
|
216 |
if (value & AFMT_U8) {
|
slouken@1895
|
217 |
format = AFMT_U8;
|
slouken@1895
|
218 |
}
|
slouken@1895
|
219 |
break;
|
slouken@1895
|
220 |
case AUDIO_S16LSB:
|
slouken@1895
|
221 |
if (value & AFMT_S16_LE) {
|
slouken@1895
|
222 |
format = AFMT_S16_LE;
|
slouken@1895
|
223 |
}
|
slouken@1895
|
224 |
break;
|
slouken@1895
|
225 |
case AUDIO_S16MSB:
|
slouken@1895
|
226 |
if (value & AFMT_S16_BE) {
|
slouken@1895
|
227 |
format = AFMT_S16_BE;
|
slouken@1895
|
228 |
}
|
slouken@1895
|
229 |
break;
|
slouken@968
|
230 |
#if 0
|
slouken@968
|
231 |
/*
|
slouken@968
|
232 |
* These formats are not used by any real life systems so they are not
|
slouken@968
|
233 |
* needed here.
|
slouken@968
|
234 |
*/
|
slouken@1895
|
235 |
case AUDIO_S8:
|
slouken@1895
|
236 |
if (value & AFMT_S8) {
|
slouken@1895
|
237 |
format = AFMT_S8;
|
slouken@1895
|
238 |
}
|
slouken@1895
|
239 |
break;
|
slouken@1895
|
240 |
case AUDIO_U16LSB:
|
slouken@1895
|
241 |
if (value & AFMT_U16_LE) {
|
slouken@1895
|
242 |
format = AFMT_U16_LE;
|
slouken@1895
|
243 |
}
|
slouken@1895
|
244 |
break;
|
slouken@1895
|
245 |
case AUDIO_U16MSB:
|
slouken@1895
|
246 |
if (value & AFMT_U16_BE) {
|
slouken@1895
|
247 |
format = AFMT_U16_BE;
|
slouken@1895
|
248 |
}
|
slouken@1895
|
249 |
break;
|
slouken@968
|
250 |
#endif
|
slouken@1895
|
251 |
default:
|
slouken@1895
|
252 |
format = 0;
|
slouken@1895
|
253 |
break;
|
slouken@1895
|
254 |
}
|
slouken@1895
|
255 |
if (!format) {
|
slouken@1895
|
256 |
test_format = SDL_NextAudioFormat();
|
slouken@1895
|
257 |
}
|
slouken@1895
|
258 |
}
|
slouken@1895
|
259 |
if (format == 0) {
|
icculus@2049
|
260 |
DSP_CloseDevice(this);
|
slouken@1895
|
261 |
SDL_SetError("Couldn't find any hardware audio formats");
|
icculus@2049
|
262 |
return 0;
|
slouken@1895
|
263 |
}
|
icculus@2049
|
264 |
this->spec.format = test_format;
|
slouken@968
|
265 |
|
slouken@1895
|
266 |
/* Set the audio format */
|
slouken@1895
|
267 |
value = format;
|
icculus@2049
|
268 |
if ( (ioctl(this->hidden->audio_fd, SNDCTL_DSP_SETFMT, &value) < 0) ||
|
icculus@2049
|
269 |
(value != format) ) {
|
slouken@1895
|
270 |
perror("SNDCTL_DSP_SETFMT");
|
icculus@2049
|
271 |
DSP_CloseDevice(this);
|
slouken@1895
|
272 |
SDL_SetError("Couldn't set audio format");
|
icculus@2049
|
273 |
return 0;
|
slouken@1895
|
274 |
}
|
slouken@968
|
275 |
|
slouken@1895
|
276 |
/* Set the number of channels of output */
|
icculus@2049
|
277 |
value = this->spec.channels;
|
icculus@2049
|
278 |
if (ioctl(this->hidden->audio_fd, SNDCTL_DSP_CHANNELS, &value) < 0) {
|
slouken@1895
|
279 |
perror("SNDCTL_DSP_CHANNELS");
|
icculus@2049
|
280 |
DSP_CloseDevice(this);
|
slouken@1895
|
281 |
SDL_SetError("Cannot set the number of channels");
|
icculus@2049
|
282 |
return 0;
|
slouken@1895
|
283 |
}
|
icculus@2049
|
284 |
this->spec.channels = value;
|
slouken@968
|
285 |
|
slouken@1895
|
286 |
/* Set the DSP frequency */
|
icculus@2049
|
287 |
value = this->spec.freq;
|
icculus@2049
|
288 |
if (ioctl(this->hidden->audio_fd, SNDCTL_DSP_SPEED, &value) < 0) {
|
slouken@1895
|
289 |
perror("SNDCTL_DSP_SPEED");
|
icculus@2049
|
290 |
DSP_CloseDevice(this);
|
slouken@1895
|
291 |
SDL_SetError("Couldn't set audio frequency");
|
icculus@2049
|
292 |
return 0;
|
slouken@1895
|
293 |
}
|
icculus@2049
|
294 |
this->spec.freq = value;
|
slouken@0
|
295 |
|
slouken@1895
|
296 |
/* Calculate the final parameters for this audio specification */
|
icculus@2049
|
297 |
SDL_CalculateAudioSpec(&this->spec);
|
slouken@0
|
298 |
|
slouken@1895
|
299 |
/* Determine the power of two of the fragment size */
|
icculus@2049
|
300 |
for (frag_spec = 0; (0x01U << frag_spec) < this->spec.size; ++frag_spec);
|
icculus@2049
|
301 |
if ((0x01U << frag_spec) != this->spec.size) {
|
icculus@2049
|
302 |
DSP_CloseDevice(this);
|
slouken@1895
|
303 |
SDL_SetError("Fragment size must be a power of two");
|
icculus@2049
|
304 |
return 0;
|
slouken@1895
|
305 |
}
|
slouken@1895
|
306 |
frag_spec |= 0x00020000; /* two fragments, for low latency */
|
slouken@0
|
307 |
|
slouken@1895
|
308 |
/* Set the audio buffering parameters */
|
slouken@0
|
309 |
#ifdef DEBUG_AUDIO
|
slouken@1895
|
310 |
fprintf(stderr, "Requesting %d fragments of size %d\n",
|
slouken@1895
|
311 |
(frag_spec >> 16), 1 << (frag_spec & 0xFFFF));
|
slouken@0
|
312 |
#endif
|
icculus@2049
|
313 |
if (ioctl(this->hidden->audio_fd, SNDCTL_DSP_SETFRAGMENT, &frag_spec) < 0) {
|
slouken@1895
|
314 |
perror("SNDCTL_DSP_SETFRAGMENT");
|
slouken@1895
|
315 |
}
|
slouken@0
|
316 |
#ifdef DEBUG_AUDIO
|
slouken@1895
|
317 |
{
|
slouken@1895
|
318 |
audio_buf_info info;
|
icculus@2049
|
319 |
ioctl(this->hidden->audio_fd, SNDCTL_DSP_GETOSPACE, &info);
|
slouken@1895
|
320 |
fprintf(stderr, "fragments = %d\n", info.fragments);
|
slouken@1895
|
321 |
fprintf(stderr, "fragstotal = %d\n", info.fragstotal);
|
slouken@1895
|
322 |
fprintf(stderr, "fragsize = %d\n", info.fragsize);
|
slouken@1895
|
323 |
fprintf(stderr, "bytes = %d\n", info.bytes);
|
slouken@1895
|
324 |
}
|
slouken@0
|
325 |
#endif
|
slouken@0
|
326 |
|
slouken@1895
|
327 |
/* Allocate mixing buffer */
|
icculus@2049
|
328 |
this->hidden->mixlen = this->spec.size;
|
icculus@2049
|
329 |
this->hidden->mixbuf = (Uint8 *) SDL_AllocAudioMem(this->hidden->mixlen);
|
icculus@2049
|
330 |
if (this->hidden->mixbuf == NULL) {
|
icculus@2049
|
331 |
DSP_CloseDevice(this);
|
icculus@2049
|
332 |
SDL_OutOfMemory();
|
icculus@2049
|
333 |
return 0;
|
slouken@1895
|
334 |
}
|
icculus@2049
|
335 |
SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size);
|
slouken@0
|
336 |
|
slouken@1895
|
337 |
/* We're ready to rock and roll. :-) */
|
icculus@2049
|
338 |
return 1;
|
icculus@2049
|
339 |
}
|
icculus@2049
|
340 |
|
icculus@2049
|
341 |
|
icculus@2049
|
342 |
static void
|
icculus@2049
|
343 |
DSP_PlayDevice(_THIS)
|
icculus@2049
|
344 |
{
|
icculus@2049
|
345 |
const Uint8 *mixbuf = this->hidden->mixbuf;
|
icculus@2049
|
346 |
const int mixlen = this->hidden->mixlen;
|
icculus@2049
|
347 |
if (write(this->hidden->audio_fd, mixbuf, mixlen) == -1) {
|
icculus@2049
|
348 |
perror("Audio write");
|
icculus@2049
|
349 |
this->enabled = 0;
|
icculus@2049
|
350 |
}
|
icculus@2049
|
351 |
#ifdef DEBUG_AUDIO
|
icculus@2049
|
352 |
fprintf(stderr, "Wrote %d bytes of audio data\n", mixlen);
|
icculus@2049
|
353 |
#endif
|
slouken@0
|
354 |
}
|
slouken@1895
|
355 |
|
icculus@2049
|
356 |
static Uint8 *
|
icculus@2049
|
357 |
DSP_GetDeviceBuf(_THIS)
|
icculus@2049
|
358 |
{
|
icculus@2049
|
359 |
return (this->hidden->mixbuf);
|
icculus@2049
|
360 |
}
|
icculus@2049
|
361 |
|
icculus@2049
|
362 |
static int
|
icculus@2049
|
363 |
DSP_Init(SDL_AudioDriverImpl *impl)
|
icculus@2049
|
364 |
{
|
icculus@2049
|
365 |
/* Set the function pointers */
|
icculus@2049
|
366 |
impl->DetectDevices = DSP_DetectDevices;
|
icculus@2049
|
367 |
impl->GetDeviceName = DSP_GetDeviceName;
|
icculus@2049
|
368 |
impl->OpenDevice = DSP_OpenDevice;
|
icculus@2049
|
369 |
impl->PlayDevice = DSP_PlayDevice;
|
icculus@2049
|
370 |
impl->GetDeviceBuf = DSP_GetDeviceBuf;
|
icculus@2049
|
371 |
impl->CloseDevice = DSP_CloseDevice;
|
icculus@2049
|
372 |
impl->Deinitialize = DSP_Deinitialize;
|
icculus@2049
|
373 |
|
icculus@2049
|
374 |
build_device_lists();
|
icculus@2049
|
375 |
return 1;
|
icculus@2049
|
376 |
}
|
icculus@2049
|
377 |
|
icculus@2049
|
378 |
|
icculus@2049
|
379 |
AudioBootStrap DSP_bootstrap = {
|
icculus@2049
|
380 |
DSP_DRIVER_NAME, "OSS /dev/dsp standard audio", DSP_Init, 0
|
icculus@2049
|
381 |
};
|
icculus@2049
|
382 |
|
slouken@1895
|
383 |
/* vi: set ts=4 sw=4 expandtab: */
|