One more minor cleanup in arts driver. SDL-ryan-multiple-audio-device
authorRyan C. Gordon <icculus@icculus.org>
Fri, 06 Oct 2006 03:40:57 +0000
branchSDL-ryan-multiple-audio-device
changeset 3814 8e1af9ff0e1f
parent 3813 92f7304e50ff
child 3815 3234d6eee011
One more minor cleanup in arts driver.
src/audio/arts/SDL_artsaudio.c
--- a/src/audio/arts/SDL_artsaudio.c	Fri Oct 06 03:32:48 2006 +0000
+++ b/src/audio/arts/SDL_artsaudio.c	Fri Oct 06 03:40:57 2006 +0000
@@ -270,8 +270,8 @@
 ARTS_OpenDevice(_THIS, const char *devname, int iscapture)
 {
     int rc = 0;
-    int bits, frag_spec;
-    SDL_AudioFormat test_format, format;
+    int bits = 0, frag_spec = 0;
+    SDL_AudioFormat test_format = 0, format = 0;
 
     /* Initialize all variables that we clean on shutdown */
     this->hidden = (struct SDL_PrivateAudioData *)
@@ -289,8 +289,6 @@
     }
 
     /* Try for a closest match on audio format */
-    format = 0;
-    bits = 0;
     for (test_format = SDL_FirstAudioFormat(this->spec.format);
          !format && test_format;) {
 #ifdef DEBUG_AUDIO