src/audio/dsp/SDL_dspaudio.c
changeset 1281 644b39bf7253
parent 1037 c5dedfdb4e42
child 1312 c9b51268668f
equal deleted inserted replaced
1280:f61f045343d3 1281:644b39bf7253
   322 
   322 
   323 	/* Allocate mixing buffer */
   323 	/* Allocate mixing buffer */
   324 	mixlen = spec->size;
   324 	mixlen = spec->size;
   325 	mixbuf = (Uint8 *)SDL_AllocAudioMem(mixlen);
   325 	mixbuf = (Uint8 *)SDL_AllocAudioMem(mixlen);
   326 	if ( mixbuf == NULL ) {
   326 	if ( mixbuf == NULL ) {
   327 	  DSP_CloseAudio(this);
   327 		DSP_CloseAudio(this);
   328 		return(-1);
   328 		return(-1);
   329 	}
   329 	}
   330 	memset(mixbuf, spec->silence, spec->size);
   330 	memset(mixbuf, spec->silence, spec->size);
   331 
   331 
   332 	/* Get the parent process id (we're the parent of the audio thread) */
   332 	/* Get the parent process id (we're the parent of the audio thread) */