configure
changeset 12054 e604fe493d45
parent 12035 1a7dec71e8e0
child 12055 bf70bfa02215
     1.1 --- a/configure	Sat Jun 30 20:55:51 2018 +0300
     1.2 +++ b/configure	Sun Jul 01 17:01:04 2018 +0300
     1.3 @@ -866,6 +866,7 @@
     1.4  enable_pthreads
     1.5  enable_pthread_sem
     1.6  enable_directx
     1.7 +enable_audio_wasapi
     1.8  enable_sdl_dlopen
     1.9  enable_clock_gettime
    1.10  enable_rpath
    1.11 @@ -1620,6 +1621,7 @@
    1.12                            [[default=yes]]
    1.13    --enable-pthread-sem    use pthread semaphores [[default=yes]]
    1.14    --enable-directx        use DirectX for Windows audio/video [[default=yes]]
    1.15 +  --enable-audio-wasapi   use the Windows WASAPI audio driver [[default=yes]]
    1.16    --enable-sdl-dlopen     use dlopen for shared object loading [[default=yes]]
    1.17    --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
    1.18                            UNIX [[default=yes]]
    1.19 @@ -23231,6 +23233,14 @@
    1.20          SUMMARY_video="${SUMMARY_video} directx"
    1.21          SUMMARY_audio="${SUMMARY_audio} directx"
    1.22  
    1.23 +        # Check whether --enable-audio-wasapi was given.
    1.24 +if test "${enable_audio_wasapi+set}" = set; then :
    1.25 +  enableval=$enable_audio_wasapi;
    1.26 +else
    1.27 +  enable_audio_wasapi=yes
    1.28 +fi
    1.29 +
    1.30 +
    1.31          # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
    1.32          # FIXME:  ...so force it off for now.
    1.33          case "$host" in
    1.34 @@ -24134,10 +24144,11 @@
    1.35  
    1.36                  SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
    1.37              fi
    1.38 -            if test x$have_wasapi = xyes; then
    1.39 +            if test x$have_wasapi = xyes -a x$enable_audio_wasapi = xyes; then
    1.40  
    1.41  $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
    1.42  
    1.43 +                SUMMARY_audio="${SUMMARY_audio} wasapi"
    1.44                  SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
    1.45              fi
    1.46              have_audio=yes