Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
One more minor cleanup in arts driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 6, 2006
1 parent 6a35761 commit ee2c46c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/audio/arts/SDL_artsaudio.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ static int
ARTS_OpenDevice(_THIS, const char *devname, int iscapture) ARTS_OpenDevice(_THIS, const char *devname, int iscapture)
{ {
int rc = 0; int rc = 0;
int bits, frag_spec; int bits = 0, frag_spec = 0;
SDL_AudioFormat test_format, format; SDL_AudioFormat test_format = 0, format = 0;


/* Initialize all variables that we clean on shutdown */ /* Initialize all variables that we clean on shutdown */
this->hidden = (struct SDL_PrivateAudioData *) this->hidden = (struct SDL_PrivateAudioData *)
Expand All @@ -289,8 +289,6 @@ ARTS_OpenDevice(_THIS, const char *devname, int iscapture)
} }


/* Try for a closest match on audio format */ /* Try for a closest match on audio format */
format = 0;
bits = 0;
for (test_format = SDL_FirstAudioFormat(this->spec.format); for (test_format = SDL_FirstAudioFormat(this->spec.format);
!format && test_format;) { !format && test_format;) {
#ifdef DEBUG_AUDIO #ifdef DEBUG_AUDIO
Expand Down

0 comments on commit ee2c46c

Please sign in to comment.