src/audio/SDL_audio.c
changeset 6900 767690d1c013
parent 6885 700f1b25f77f
child 6904 9fea506e48ab
equal deleted inserted replaced
6899:f75b1bd8eabc 6900:767690d1c013
   578     }
   578     }
   579 
   579 
   580     for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
   580     for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
   581         /* make sure we should even try this driver before doing so... */
   581         /* make sure we should even try this driver before doing so... */
   582         const AudioBootStrap *backend = bootstrap[i];
   582         const AudioBootStrap *backend = bootstrap[i];
   583         if (((driver_name) && (SDL_strcasecmp(backend->name, driver_name))) ||
   583         if ((driver_name && (SDL_strncasecmp(backend->name, driver_name, SDL_strlen(driver_name)) != 0)) ||
   584             ((!driver_name) && (backend->demand_only))) {
   584             (!driver_name && backend->demand_only)) {
   585             continue;
   585             continue;
   586         }
   586         }
   587 
   587 
   588         tried_to_init = 1;
   588         tried_to_init = 1;
   589         SDL_memset(&current_audio, 0, sizeof(current_audio));
   589         SDL_memset(&current_audio, 0, sizeof(current_audio));