src/audio/SDL_audio.c
changeset 2141 e1a70460c354
parent 2130 3ee59c43d784
child 2144 665c2669e6a3
equal deleted inserted replaced
2140:15b4a74cdac1 2141:e1a70460c354
   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 = (Uint8)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 */