changeset 3814:8e1af9ff0e1f SDL-ryan-multiple-audio-device

One more minor cleanup in arts driver.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 06 Oct 2006 03:40:57 +0000
parents 92f7304e50ff
children 3234d6eee011
files src/audio/arts/SDL_artsaudio.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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