Skip to content

Commit

Permalink
Reset the device before closing it - fixes a hang with some audio dri…
Browse files Browse the repository at this point in the history
…vers
  • Loading branch information
slouken committed Dec 6, 2001
1 parent 0d009db commit 16c51ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/dsp/SDL_dspaudio.c
Expand Up @@ -233,6 +233,8 @@ static void DSP_CloseAudio(_THIS)
mixbuf = NULL;
}
if ( audio_fd >= 0 ) {
int value;
ioctl(audio_fd, SNDCTL_DSP_RESET, &value);
close(audio_fd);
audio_fd = -1;
}
Expand Down

0 comments on commit 16c51ee

Please sign in to comment.