Mercurial > libavformat.hg
diff audio.c @ 754:aa52767bb802 libavformat
OpenBSD support patch by (Jacob Meuser // jakemsr jakemsr com)
author | michael |
---|---|
date | Mon, 09 May 2005 13:24:23 +0000 |
parents | 0fdc96c2f2fe |
children | feca73904e67 |
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);