59b3fd48bd
Lots of bug fixes.
25 lines
682 B
Plaintext
25 lines
682 B
Plaintext
$OpenBSD: patch-libavformat_audio_c,v 1.3 2005/04/20 16:46:54 naddy Exp $
|
|
--- libavformat/audio.c.orig Fri Jun 18 20:59:34 2004
|
|
+++ libavformat/audio.c Thu Apr 14 23:01:52 2005
|
|
@@ -21,7 +21,11 @@
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
+#if defined(__OpenBSD__)
|
|
+#include <soundcard.h>
|
|
+#else
|
|
#include <sys/soundcard.h>
|
|
+#endif
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <sys/ioctl.h>
|
|
@@ -49,7 +53,7 @@ static int audio_open(AudioData *s, int
|
|
|
|
/* open linux audio device */
|
|
if (!audio_device)
|
|
- audio_device = "/dev/dsp";
|
|
+ audio_device = "/dev/audio";
|
|
|
|
if (is_output)
|
|
audio_fd = open(audio_device, O_WRONLY);
|