Mercurial > sdl-ios-xcode
diff src/audio/SDL_audio.c @ 3798:c8b3d3d13ed1 SDL-ryan-multiple-audio-device
Audio bootstraps can now specify that a driver is only to be used if
explicitly requested (for things like the "disk" driver that is always
available but you would never want to default to using).
Trimmed out code that can be handled by stubs in the core. The "dummy" driver
is pretty damned small now. :)
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 04 Oct 2006 21:27:53 +0000 |
parents | b19680c84cdf |
children | e17a59e6aff6 |
line wrap: on
line diff
--- a/src/audio/SDL_audio.c Wed Oct 04 20:42:39 2006 +0000 +++ b/src/audio/SDL_audio.c Wed Oct 04 21:27:53 2006 +0000 @@ -480,7 +480,7 @@ } } else { for (i = 0; (!initialized) && (bootstrap[i]); ++i) { - if (bootstrap[i]->available()) { + if ((!bootstrap[i]->demand) && (bootstrap[i]->available())) { SDL_memset(¤t_audio, 0, sizeof (current_audio)); current_audio.name = bootstrap[i]->name; current_audio.desc = bootstrap[i]->desc;