• Sam Lantinga's avatar
    Fixed SDL 1.2 compatibility problem. · 170521f2
    Sam Lantinga authored
    The API specifies that SDL_OpenAudio() will fill out the 'desired' audio spec
    with the correct samples and size set by the driver.  This value is important
    since it may be used by applications that size audio buffers, etc.
    
    However, we want to allow advanced applications to call SDL_OpenAudioDevice()
    which gets passed a const 'desired' parameter, and have the correct data filled
    into the 'obtained' parameter, possibly allowing or not allowing format changes.
    
    So... 'obtained' becomes the audio format the user callback is expected to use,
    and we add flags to allow the application to specify which format changes are
    allowed.
    
    Note: We really need to add a way to query the 'obtained' audio spec.
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403328
    170521f2
Name
Last commit
Last update
..
audio Loading commit data...
cdrom Loading commit data...
cpuinfo Loading commit data...
events Loading commit data...
file Loading commit data...
haptic Loading commit data...
joystick Loading commit data...
libm Loading commit data...
loadso Loading commit data...
main Loading commit data...
stdlib Loading commit data...
thread Loading commit data...
timer Loading commit data...
video Loading commit data...
SDL.c Loading commit data...
SDL_compat.c Loading commit data...
SDL_error.c Loading commit data...
SDL_error_c.h Loading commit data...
SDL_fatal.c Loading commit data...
SDL_fatal.h Loading commit data...