summarylogtreecommitdiffstats
path: root/default-players.patch
diff options
context:
space:
mode:
authorJeremy Visser2018-09-01 15:47:16 +1000
committerJeremy Visser2018-09-01 15:47:16 +1000
commit976a472bdcfb60ccd3e0093aa21b2fe68e66a8e4 (patch)
tree29449e96e67151fc652f09e21e4783f2794cc8c8 /default-players.patch
downloadaur-976a472bdcfb60ccd3e0093aa21b2fe68e66a8e4.tar.gz
adplay: initial commit (v1.8)
I found that the default configuration did not work out-of-the-box for me, so I've included a patch that prioritises SDL as the default output driver. You can still override the output driver with the -O flag. See adplay(1) for more information about the flag and valid drivers.
Diffstat (limited to 'default-players.patch')
-rw-r--r--default-players.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/default-players.patch b/default-players.patch
new file mode 100644
index 000000000000..2140bbbe8c48
--- /dev/null
+++ b/default-players.patch
@@ -0,0 +1,44 @@
+--- src/players.h.orig 2018-09-01 15:12:27.329668584 +1000
++++ src/players.h 2018-09-01 15:13:19.813212476 +1000
+@@ -53,20 +53,6 @@
+ #define DEFAULT_DRIVER esound
+ #endif
+
+-// SDL driver
+-#ifdef DRIVER_SDL
+-#include "sdl.h"
+-#undef DEFAULT_DRIVER
+-#define DEFAULT_DRIVER sdl
+-#endif
+-
+-// AO driver
+-#ifdef DRIVER_AO
+-#include "ao.h"
+-#undef DEFAULT_DRIVER
+-#define DEFAULT_DRIVER ao
+-#endif
+-
+ // OSS driver
+ #ifdef DRIVER_OSS
+ #include "oss.h"
+@@ -81,6 +67,20 @@
+ #define DEFAULT_DRIVER alsa
+ #endif
+
++// AO driver
++#ifdef DRIVER_AO
++#include "ao.h"
++#undef DEFAULT_DRIVER
++#define DEFAULT_DRIVER ao
++#endif
++
++// SDL driver
++#ifdef DRIVER_SDL
++#include "sdl.h"
++#undef DEFAULT_DRIVER
++#define DEFAULT_DRIVER sdl
++#endif
++
+ // QSA driver
+ #ifdef DRIVER_QSA
+ #include "qsa.h"