comparison src/audio/dart/SDL_dart.c @ 3846:66fb40445587 SDL-ryan-multiple-audio-device

Removed distinction between "available" and "init" in audio backends, since both had to be checked for success as a pair at the higher level and several of the Available methods were just always-succeed placeholders anyhow. Now the availability check is done in the init code, and the higher level tries all possible drivers until one manages to initialize successfully.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 17 Oct 2006 09:09:21 +0000
parents 506fc6ca82cb
children
comparison
equal deleted inserted replaced
3845:ee5dfa7f7993 3846:66fb40445587
425 SDL_free(_this->hidden); 425 SDL_free(_this->hidden);
426 _this->hidden = NULL; 426 _this->hidden = NULL;
427 } 427 }
428 } 428 }
429 429
430 static int
431 DART_Available(void)
432 {
433 return 1; /* Always available on OS/2 Warp */
434 }
435 430
436 static int 431 static int
437 DART_Init(SDL_AudioDriverImpl *impl) 432 DART_Init(SDL_AudioDriverImpl *impl)
438 { 433 {
439 /* Set the function pointers */ 434 /* Set the function pointers */
449 return 1; 444 return 1;
450 } 445 }
451 446
452 447
453 AudioBootStrap DART_bootstrap = { 448 AudioBootStrap DART_bootstrap = {
454 "dart", "OS/2 Direct Audio RouTines (DART)", 449 "dart", "OS/2 Direct Audio RouTines (DART)", DART_Init, 0
455 DART_Available, DART_Init, 0
456 }; 450 };
457 451
458 /* vi: set ts=4 sw=4 expandtab: */ 452 /* vi: set ts=4 sw=4 expandtab: */