src/audio/dsp/SDL_dspaudio.c
changeset 248 8e47ebb7bced
parent 97 c7bcdece4845
child 252 e8157fcb3114
equal deleted inserted replaced
247:b0f09f86378d 248:8e47ebb7bced
   231 	if ( mixbuf != NULL ) {
   231 	if ( mixbuf != NULL ) {
   232 		SDL_FreeAudioMem(mixbuf);
   232 		SDL_FreeAudioMem(mixbuf);
   233 		mixbuf = NULL;
   233 		mixbuf = NULL;
   234 	}
   234 	}
   235 	if ( audio_fd >= 0 ) {
   235 	if ( audio_fd >= 0 ) {
       
   236 		int value;
       
   237 		ioctl(audio_fd, SNDCTL_DSP_RESET, &value);
   236 		close(audio_fd);
   238 		close(audio_fd);
   237 		audio_fd = -1;
   239 		audio_fd = -1;
   238 	}
   240 	}
   239 }
   241 }
   240 
   242