summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-22 10:30:11 +0200
committerwm4 <wm4@nowhere>2017-06-22 13:17:14 +0200
commit5c038e69997affd46430970f943a604b92ee96df (patch)
tree71e0824bab55f7b69d4428f01f8367031ed75ebf /audio
parent3e49133a257113c8d32f2b0d31cca471e8b14f08 (diff)
downloadmpv-5c038e69997affd46430970f943a604b92ee96df.tar.bz2
mpv-5c038e69997affd46430970f943a604b92ee96df.tar.xz
build: simplify OSS checks and remove changes by "bugmen0t"
The user bugmen0t was apparently a shared github account with publicly available login. Thus, we can't get LGPL relicensing permission from the people who used this account. To relicense successfully, we have to remove all their changes. This commit should remove 20d1fc13, f26fb009, defbe48d. It also should remove whatever test fragments were copied from the ancient configure, as well as some configure logic (potentially that device path stuff). I think this change still preserves the most important use-cases of OSS: BSDs, and the Linux OSS emulation (the latter for testing only). According to an OSS user, the 4front checks were probably broken anyway. The SunAudio stuff was probably for (Open)Solaris, which is dead. ao_oss.c itself will remain GPL, and still contains bugmen0t changes.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_oss.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c
index aee4357075..1478d1400e 100644
--- a/audio/out/ao_oss.c
+++ b/audio/out/ao_oss.c
@@ -42,13 +42,7 @@
#include "osdep/timer.h"
#include "osdep/endian.h"
-#if HAVE_SYS_SOUNDCARD_H
#include <sys/soundcard.h>
-#else
-#if HAVE_SOUNDCARD_H
-#include <soundcard.h>
-#endif
-#endif
#include "audio/format.h"
@@ -60,6 +54,9 @@
// Define to 1 if SNDCTL_DSP_RESET should be used to reset without close.
#define KEEP_DEVICE (defined(SNDCTL_DSP_RESET) && !defined(__NetBSD__))
+#define PATH_DEV_DSP "/dev/dsp"
+#define PATH_DEV_MIXER "/dev/mixer"
+
struct priv {
int audio_fd;
int prepause_samples;