Mercurial > sdl-ios-xcode
comparison src/audio/dsp/SDL_dspaudio.c @ 1281:644b39bf7253
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Jan 2006 06:40:13 +0000 |
parents | c5dedfdb4e42 |
children | c9b51268668f |
comparison
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) */ |