Fixed bug #857 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Mon, 19 Oct 2009 10:02:00 +0000
branchSDL-1.2
changeset 4365 d91a8026e0aa
parent 4364 ae3d564e2716
child 4366 f00e178dfc9e
Fixed bug #857 Fixed compiler warnings
src/audio/alsa/SDL_alsa_audio.c
--- a/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 19 06:01:58 2009 +0000
+++ b/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 19 10:02:00 2009 +0000
@@ -381,7 +381,7 @@
 
 	/* This is useful for debugging */
 	if ( getenv("SDL_AUDIO_ALSA_DEBUG") ) {
-		snd_pcm_sframes_t persize = 0;
+		snd_pcm_uframes_t persize = 0;
 		unsigned int periods = 0;
 
 		SDL_NAME(snd_pcm_hw_params_get_period_size)(hwparams, &persize, NULL);
@@ -467,7 +467,6 @@
 	snd_pcm_format_t     format;
 	unsigned int         rate;
 	unsigned int 	     channels;
-	snd_pcm_uframes_t    bufsize;
 	Uint16               test_format;
 
 	/* Open the audio device */