summaryrefslogtreecommitdiff
path: root/audio/xamp/patches/patch-ag
blob: 608ba040344ff8444b75c54500d18484b750e3cc (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
$NetBSD: patch-ag,v 1.1 1999/11/15 13:07:12 rh Exp $

--- ../audioIO_SunOS.c.orig	Sat May 31 19:47:58 1997
+++ ../audioIO_SunOS.c	Mon Nov 15 13:58:45 1999
@@ -8,7 +8,11 @@
 
 #include "amp.h"
 #include <sys/types.h>
+#ifndef OS_NetBSD
 #include <sys/stropts.h>
+#else
+#include <sys/ioctl.h>
+#endif
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>
@@ -36,8 +40,7 @@
 	}
 	DB(audio, msg("Audio device opened on %d\n",audio_fd) );
 
-	if (ioctl(audio_fd,AUDIO_GETINFO,&auinfo)<0)
-		die("Unable to get audio info\n");
+	AUDIO_INITINFO(&auinfo);
 
 	auinfo.play.precision=16;
 	auinfo.play.encoding=AUDIO_ENCODING_LINEAR;