Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: Doozer on March 30, 2018, 02:50:41 am

Title: Warning: SDL2 and Arch Linux
Post by: Doozer on March 30, 2018, 02:50:41 am
For your information.

From SDL2 version 2.0.8-2 the ALSA audio driver has been disabled (at compile time). Please use version 2.0.8-1 and do not upgrade the package to enjoy sound unless you are using other audio driver like pulseaudio on your system.

Problem is still present in 2.0.8-5.
Title: Re: Warning: SDL2 and Arch Linux
Post by: ves on March 30, 2018, 04:57:09 am
WTF!!!!! :angry:


Quote
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index cefb1ea5ed3..4df53ab7094 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
 pkgname=sdl2
 pkgver=2.0.8
-pkgrel=4
+pkgrel=5
 pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
 arch=('x86_64')
 url="http://www.libsdl.org"
@@ -33,7 +33,8 @@ build() {
       -DALSA=OFF \
       -DPULSEAUDIO_SHARED=ON \
       -DVIDEO_WAYLAND=ON \
-      -DRPATH=OFF
+      -DRPATH=OFF \
+      -DCLOCK_GETTIME=ON
   make
 }
Title: Re: Warning: SDL2 and Arch Linux
Post by: Doozer on March 30, 2018, 07:37:11 am

It must be a mature decision because the author recognised it was done deliberately.

It is time my friend to enable pulseaudio in your distribution. For a short term solution you can build a custom PKGBUILD, but it will require more maintenance is the situation last longer.
Title: Re: Warning: SDL2 and Arch Linux
Post by: Doozer on April 02, 2018, 04:47:58 am

The new version sdl2-2.0.8-6 has ALSA support back in.