Skip to contentSkip to conversation

audio: catch missing sdl support

PATCH In review Gerd Hoffmann 2 participants 3 messages Mar 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audio: catch missing sdl support

sdl is probed before audio, so we can simply look at $sdl so see whenever we have support or not. Throw an error in case sdl audio is requested without sdl being available.

---
 configure | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
configure +8 -2
index 99d8bec..2d088c6 100755
@@ -2894,6 +2894,12 @@ for drv in $audio_drv_list; do
     audio_pt_int="yes"
     ;;
 
+    sdl)
+    if test "$sdl" = "no"; then
+        error_exit "sdl not found or disabled, can not use sdl audio driver"
+    fi
+    ;;
+
     coreaudio)
       libs_softmmu="-framework CoreAudio $libs_softmmu"
     ;;
@@ -2907,8 +2913,8 @@ for drv in $audio_drv_list; do
       libs_softmmu="$oss_lib $libs_softmmu"
     ;;
 
-    sdl|wav)
-    # XXX: Probes for CoreAudio, DirectSound, SDL(?)
+    wav)
+    # XXX: Probes for CoreAudio, DirectSound
     ;;
 
     *)
Signature · 1 line
1.8.3.1
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 39 lines · Gerd Hoffmann

sdl is probed before audio, so we can simply look at $sdl so see whenever we have support or not. Throw an error in case sdl audio is requested without sdl being available.

---
 configure | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
configure +8 -3
index 99d8bec..2d088c6 100755
@@ -2894,6 +2894,12 @@ for drv in $audio_drv_list; do
     audio_pt_int="yes"
     ;;
 
+    sdl)
+    if test "$sdl" = "no"; then
+        error_exit "sdl not found or disabled, can not use sdl audio driver"
+    fi
+    ;;
+
     coreaudio)
       libs_softmmu="-framework CoreAudio $libs_softmmu"
     ;;
@@ -2907,8 +2913,8 @@ for drv in $audio_drv_list; do
       libs_softmmu="$oss_lib $libs_softmmu"
     ;;
 
-    sdl|wav)
-    # XXX: Probes for CoreAudio, DirectSound, SDL(?)
+    wav)
+    # XXX: Probes for CoreAudio, DirectSound
     ;;
 
     *)
--
Quoted 1 line

1.8.3.1

I'll apply this to master as a buildfix in a bit.

thanks
-- PMM

#2 lore raw
Quoted 9 lines · Peter Maydell
Quoted 3 lines · Gerd Hoffmann

sdl is probed before audio, so we can simply look at $sdl so see whenever we have support or not. Throw an error in case sdl audio is requested without sdl being available.

I'll apply this to master as a buildfix in a bit.

...now applied.

thanks
-- PMM