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

Commit

Permalink
Replaced a sanity check with an SDL_assert().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 21, 2011
1 parent 4c3a0f2 commit 71c39df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/audio/SDL_audio.c
Expand Up @@ -1075,12 +1075,8 @@ SDL_OpenAudio(SDL_AudioSpec * desired, SDL_AudioSpec * obtained)
} else {
id = open_audio_device(NULL, 0, desired, desired, 0, 1);
}
if (id > 1) { /* this should never happen in theory... */
SDL_CloseAudioDevice(id);
SDL_SetError("Internal error"); /* MUST be Device ID #1! */
return (-1);
}

SDL_assert((id == 0) || (id == 1));
return ((id == 0) ? -1 : 0);
}

Expand Down

0 comments on commit 71c39df

Please sign in to comment.