Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audio.c @ 2130:3ee59c43d784
Fixes for compiling with Visual C++ 8.0 Express Edition
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 19 Jun 2007 05:53:56 +0000 |
parents | 939420dee849 |
children | e1a70460c354 |
comparison
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 */ |