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 38148e1af9ff0e1f
parent 3813 92f7304e50ff
child 3815 3234d6eee011
One more minor cleanup in arts driver.
src/audio/arts/SDL_artsaudio.c
     1.1 --- a/src/audio/arts/SDL_artsaudio.c	Fri Oct 06 03:32:48 2006 +0000
     1.2 +++ b/src/audio/arts/SDL_artsaudio.c	Fri Oct 06 03:40:57 2006 +0000
     1.3 @@ -270,8 +270,8 @@
     1.4  ARTS_OpenDevice(_THIS, const char *devname, int iscapture)
     1.5  {
     1.6      int rc = 0;
     1.7 -    int bits, frag_spec;
     1.8 -    SDL_AudioFormat test_format, format;
     1.9 +    int bits = 0, frag_spec = 0;
    1.10 +    SDL_AudioFormat test_format = 0, format = 0;
    1.11  
    1.12      /* Initialize all variables that we clean on shutdown */
    1.13      this->hidden = (struct SDL_PrivateAudioData *)
    1.14 @@ -289,8 +289,6 @@
    1.15      }
    1.16  
    1.17      /* Try for a closest match on audio format */
    1.18 -    format = 0;
    1.19 -    bits = 0;
    1.20      for (test_format = SDL_FirstAudioFormat(this->spec.format);
    1.21           !format && test_format;) {
    1.22  #ifdef DEBUG_AUDIO