Skip to content
Permalink
Browse files

Reset the device before closing it - fixes a hang with some audio dri…

…vers
  • Loading branch information
slouken committed Dec 6, 2001
1 parent 0d009db commit 16c51ee540deb7b8574ddd3b0c99be1d219e4101
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/audio/dsp/SDL_dspaudio.c
@@ -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;
}

0 comments on commit 16c51ee

Please sign in to comment.