comparison src/audio/SDL_audio.c @ 3843:ce229f6b5ce0 SDL-ryan-multiple-audio-device

Added a FIXME.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 17 Oct 2006 06:42:06 +0000
parents be9bd1067c6c
children 66fb40445587
comparison
equal deleted inserted replaced
3842:6b04ca2f1016 3843:ce229f6b5ce0
371 /* Select the proper audio driver */ 371 /* Select the proper audio driver */
372 if (driver_name == NULL) { 372 if (driver_name == NULL) {
373 driver_name = SDL_getenv("SDL_AUDIODRIVER"); 373 driver_name = SDL_getenv("SDL_AUDIODRIVER");
374 } 374 }
375 375
376 /* !!! FIXME: what's the point of separating available() and init()? */
376 if (driver_name != NULL) { 377 if (driver_name != NULL) {
377 for (i = 0; bootstrap[i]; ++i) { 378 for (i = 0; bootstrap[i]; ++i) {
378 if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) { 379 if (SDL_strcasecmp(bootstrap[i]->name, driver_name) == 0) {
379 if (bootstrap[i]->available()) { 380 if (bootstrap[i]->available()) {
380 SDL_memset(&current_audio, 0, sizeof (current_audio)); 381 SDL_memset(&current_audio, 0, sizeof (current_audio));