|
|
| version 1.12, 2008/04/02 13:03:34 | version 1.13, 2010/11/07 14:01:54 |
|---|---|
| Line 1001 sdlaudio_callback(void *userdata, unsign | Line 1001 sdlaudio_callback(void *userdata, unsign |
| UINT samples = (UINT)userdata; | UINT samples = (UINT)userdata; |
| int nextbuf = sound_nextbuf; | int nextbuf = sound_nextbuf; |
| UNUSED(len); | |
| if (sound_event != NULL) | if (sound_event != NULL) |
| memset(sound_event, 0, samples); | memset(sound_event, 0, samples); |
| sound_nextbuf = (sound_nextbuf + 1) % NSOUNDBUFFER; | sound_nextbuf = (sound_nextbuf + 1) % NSOUNDBUFFER; |
| sound_event = sound_buffer[sound_nextbuf]; | sound_event = sound_buffer[sound_nextbuf]; |
| SDL_MixAudio(stream, (const void *)sound_buffer[nextbuf], samples, | SDL_MixAudio(stream, (const void *)sound_buffer[nextbuf], len, |
| SDL_MIX_MAXVOLUME); | SDL_MIX_MAXVOLUME); |
| } | } |