blob: 850dcc6b4dcd47c57c268a2b31a83ab6eb24d278 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ag,v 1.1 2005/11/18 14:52:44 joerg Exp $
--- audioIO_Linux.c.orig 1997-05-31 19:47:58.000000000 +0200
+++ audioIO_Linux.c
@@ -78,7 +78,12 @@ audioOpen(int frequency, int stereo, int
if (volume != -1)
audioSetVolume(volume);
- if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &AUSIZ) == -1)
+#ifdef SNDCTl_DSP_GETBLKSIZE
+ if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &AUSIZ) != -1)
+ return;
+#endif
+ AUSIZ = DEFAULT_AUSIZ;
+ if (AUSIZ == 0)
die("Unable to get fragment size\n");
}
|