changeset 754:aa52767bb802 libavformat

OpenBSD support patch by (Jacob Meuser // jakemsr jakemsr com)
author michael
date Mon, 09 May 2005 13:24:23 +0000
parents 1fc7b1637f90
children 27449ee55201
files audio.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/audio.c	Mon May 09 10:48:12 2005 +0000
+++ b/audio.c	Mon May 09 13:24:23 2005 +0000
@@ -21,7 +21,11 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#else
 #include <sys/soundcard.h>
+#endif
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
@@ -49,7 +53,11 @@
 
     /* open linux audio device */
     if (!audio_device)
+#ifdef __OpenBSD__
+	audio_device = "/dev/sound";
+#else
         audio_device = "/dev/dsp";
+#endif
 
     if (is_output)
         audio_fd = open(audio_device, O_WRONLY);