31 lines
737 B
Text
31 lines
737 B
Text
$NetBSD: patch-aj,v 1.1.1.1 2004/01/26 15:40:00 jmmv Exp $
|
|
|
|
--- mpeglib/lib/util/audio/audioIO_Linux.cpp.orig Thu Jul 27 16:24:55 2000
|
|
+++ mpeglib/lib/util/audio/audioIO_Linux.cpp
|
|
@@ -40,7 +40,7 @@
|
|
#include <sys/soundcard.h>
|
|
#else
|
|
// fallback:
|
|
-#include <linux/soundcard.h>
|
|
+#include <soundcard.h> /* NetBSD has <soundcard.h> */
|
|
|
|
#endif
|
|
#endif
|
|
@@ -48,7 +48,7 @@
|
|
|
|
/* optimal fragment size */
|
|
|
|
-int AUSIZ = 0;
|
|
+int ausiz = 0;
|
|
|
|
// declare these static to effectively isolate the audio device
|
|
|
|
@@ -147,7 +147,7 @@
|
|
exit(0);
|
|
}
|
|
|
|
- if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &AUSIZ) == -1) {
|
|
+ if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &ausiz) == -1) {
|
|
perror("Unable to get fragment size\n");
|
|
exit(0);
|
|
}
|