src/audio/SDL_audio.c
changeset 2130 3ee59c43d784
parent 2076 939420dee849
child 2141 e1a70460c354
equal deleted inserted replaced
2129:047245361002 2130:3ee59c43d784
   553     }
   553     }
   554 
   554 
   555     switch (orig->channels) {
   555     switch (orig->channels) {
   556     case 0:{
   556     case 0:{
   557             const char *env = SDL_getenv("SDL_AUDIO_CHANNELS");
   557             const char *env = SDL_getenv("SDL_AUDIO_CHANNELS");
   558             if ((!env) || ((prepared->channels = SDL_atoi(env)) == 0)) {
   558             if ((!env) || ((prepared->channels = (Uint8)SDL_atoi(env)) == 0)) {
   559                 prepared->channels = 2; /* a reasonable default */
   559                 prepared->channels = 2; /* a reasonable default */
   560             }
   560             }
   561             break;
   561             break;
   562         }
   562         }
   563     case 1:                    /* Mono */
   563     case 1:                    /* Mono */