comparison src/audio/dma/SDL_dmaaudio.c @ 92:dab667b72ccc

Fixed the DMA driver not to reset the audio descriptor (not needed, and it breaks things on some drivers)
author Sam Lantinga <slouken@lokigames.com>
date Sat, 07 Jul 2001 23:12:42 +0000
parents d3bc792e136d
children ae6e6b73333f
comparison
equal deleted inserted replaced
91:e85e03f195b4 92:dab667b72ccc
258 audio_fd = open(audiodev, O_RDWR, 0); 258 audio_fd = open(audiodev, O_RDWR, 0);
259 if ( audio_fd < 0 ) { 259 if ( audio_fd < 0 ) {
260 SDL_SetError("Couldn't open %s: %s", audiodev, strerror(errno)); 260 SDL_SetError("Couldn't open %s: %s", audiodev, strerror(errno));
261 return(-1); 261 return(-1);
262 } 262 }
263 ioctl(audio_fd, SNDCTL_DSP_RESET, 0);
264 263
265 /* Calculate the final parameters for this audio specification */ 264 /* Calculate the final parameters for this audio specification */
266 SDL_CalculateAudioSpec(spec); 265 SDL_CalculateAudioSpec(spec);
267 266
268 /* Determine the power of two of the fragment size */ 267 /* Determine the power of two of the fragment size */