• Show log

    Commit

  • Hash : 3261f7f6
    Author : David Gow
    Date : 2021-08-26T16:15:30

    audio: Support "pulse" as an alias for "pulseaudio"
    
    Originally, SDL 1.2 used "pulse" as the name for its PulseAudio driver.
    While it now supports "pulseaudio" as well for compatibility with SDL
    2.0 [1], there are still scripts and distro packages which set
    SDL_AUDIODRIVER=pulse [2]. While it's possible to remove this in most
    circumstances or replace it with "pulseaudio" or a comma-separated list,
    this may still conflict if the environment variable is set globally and
    old binary builds of SDL 1.2 (e.g. packaged with older games) are being
    used.
    
    To fix this on SDL 2.0, add a hardcoded check for "pulse" as an audio
    driver name, and replace it with "pulseaudio". This mimics what SDL 1.2
    does (but in reverse). Note that setting driver_attempt{,_len} is safe
    here as they're reset correctly based on driver_attempt_end on the next
    loop.
    
    [1] https://github.com/libsdl-org/SDL-1.2/commit/d9514097846381cd30fe08df65dbdd48de92a058
    [2] https://bugzilla.opensuse.org/show_bug.cgi?id=1189778
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags

  • README.md

  • Simple DirectMedia Layer (SDL) Version 2.0

    https://www.libsdl.org/

    Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve’s award winning catalog and many Humble Bundle games.

    More extensive documentation is available in the docs directory, starting with README.md

    Enjoy!

    Sam Lantinga (slouken@libsdl.org)