We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 43

Summary: Add a way to enumerate and select audio/video/etc drivers.
Product: SDL Reporter: Ryan C. Gordon <icculus>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2 CC: max, slouken
Version: 2.0.0   
Hardware: All   
OS: All   

Description Ryan C. Gordon 2006-01-12 17:25:17 UTC
So we can sanity check the final binaries for missing targets, and also so these can be programmatically discovered and chosen (environment variables don't count!).

--ryan.
Comment 1 Sam Lantinga 2006-01-19 07:45:22 UTC
*** Bug 54 has been marked as a duplicate of this bug. ***
Comment 2 Ryan C. Gordon 2006-01-27 11:23:14 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 3 Max Horn 2006-04-17 03:49:31 UTC
Indeed, we've had to tell too many of our users (IMHO :-) about how to use those arcane SDL_* env vars to get ScummVM working on their system. It would be so much nicer if we could provide our own configuration option for this, w/o hacking up the env vars before calling SDL code...
Comment 4 Sam Lantinga 2006-05-20 00:35:45 UTC
This is implemented in SDL 1.3:
        Added SDL_GetNumVideoDrivers() and SDL_GetVideoDriver().
        Replaced SDL_VideoDriverName() with SDL_GetCurrentVideoDriver()
        Added SDL_GetNumAudioDrivers() and SDL_GetAudioDriver().
        Replaced SDL_AudioDriverName() with SDL_GetCurrentAudioDriver()

You can already initialize specific drivers:
SDL_VideoInit(), SDL_AudioInit()