diff src/audio/SDL_audio.c @ 1901:f1828a500391

Removed libc dependency on Windows again, to fix building with Visual C++ 2005 Express Edition. Fixed performance problem with testsprite2 on the D3D driver.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 13 Jul 2006 08:13:02 +0000
parents c121d94672cb
children f132024010be
line wrap: on
line diff
--- a/src/audio/SDL_audio.c	Wed Jul 12 09:25:17 2006 +0000
+++ b/src/audio/SDL_audio.c	Thu Jul 13 08:13:02 2006 +0000
@@ -497,7 +497,7 @@
     if (desired->channels == 0) {
         env = SDL_getenv("SDL_AUDIO_CHANNELS");
         if (env) {
-            desired->channels = SDL_atoi(env);
+            desired->channels = (Uint8)SDL_atoi(env);
         }
     }
     if (desired->channels == 0) {
@@ -517,7 +517,7 @@
     if (desired->samples == 0) {
         env = SDL_getenv("SDL_AUDIO_SAMPLES");
         if (env) {
-            desired->samples = SDL_atoi(env);
+            desired->samples = (Uint16)SDL_atoi(env);
         }
     }
     if (desired->samples == 0) {