src/audio/dma/SDL_dmaaudio.c
changeset 92 dab667b72ccc
parent 35 d3bc792e136d
child 94 ae6e6b73333f
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 */