blob: 8a4ef07fc781afb71dbde95fe9b3cc16c3927e6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-am,v 1.3 1998/12/14 02:17:11 tv Exp $
--- multimedia/init.c.orig Sun Oct 11 10:15:36 1998
+++ multimedia/init.c Sun Dec 13 01:14:24 1998
@@ -36,6 +36,7 @@
#ifdef HAVE_OSS
int unixToWindowsDeviceType(int type)
{
+#ifndef __NetBSD__
/* MOD_MIDIPORT output port
* MOD_SYNTH generic internal synth
* MOD_SQSYNTH square wave internal synth
@@ -55,6 +56,9 @@
"Assuming FM Synth\n");
return MOD_FMSYNTH;
}
+#else
+ return MOD_FMSYNTH;
+#endif
}
#endif
@@ -66,7 +70,7 @@
*/
BOOL32 MULTIMEDIA_MidiInit(void)
{
-#ifdef HAVE_OSS
+#if defined(HAVE_OSS) && !defined(__NetBSD__)
int i, status, numsynthdevs = 255, nummididevs = 255;
struct synth_info sinfo;
struct midi_info minfo;
|