blob: 819646081cddf680a0c68323b9f7026b104c633c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$FreeBSD$
--- mixer.c 2001/05/08 07:44:26 1.1
+++ mixer.c 2001/05/08 07:47:09
@@ -865,3 +865,18 @@
}
return(chan);
}
+
+int Mix_GetMixerInfo(SDL_AudioSpec *m, char *namebuf, int maxlen)
+{
+ if (!audio_opened)
+ return -1;
+ if (m)
+ *m = mixer; /* struct copy */
+ if (namebuf && maxlen > 0)
+ {
+ namebuf[0] = 0;
+ if (SDL_AudioDriverName(namebuf, maxlen) == NULL)
+ namebuf[0] = 0;
+ }
+ return 0;
+}
|