# HG changeset patch # User Ryan C. Gordon # Date 1183603674 0 # Node ID 9fcde304c7b6600e245135ee5bb6986a08e10cec # Parent 5c14978b1e97cfe8a1621101fc182cf2638bdec1 Replaced a few memset/memcpy calls with SDL_memset/SDL_memcpy. diff -r 5c14978b1e97 -r 9fcde304c7b6 test/testmultiaudio.c --- a/test/testmultiaudio.c Thu Jul 05 02:45:47 2007 +0000 +++ b/test/testmultiaudio.c Thu Jul 05 02:47:54 2007 +0000 @@ -21,12 +21,12 @@ if (cpy > waveleft) cpy = waveleft; - memcpy(stream, waveptr, cpy); + SDL_memcpy(stream, waveptr, cpy); len -= cpy; cbd->soundpos += cpy; if (len > 0) { stream += cpy; - memset(stream, spec.silence, len); + SDL_memset(stream, spec.silence, len); cbd->done++; } } @@ -51,7 +51,7 @@ printf("playing on device #%d: ('%s')...", i, devname); fflush(stdout); - memset(&cbd[0], '\0', sizeof(callback_data)); + SDL_memset(&cbd[0], '\0', sizeof(callback_data)); spec.userdata = &cbd[0]; cbd[0].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL); if (cbd[0].dev == 0) { @@ -66,7 +66,7 @@ } } - memset(cbd, '\0', sizeof(cbd)); + SDL_memset(cbd, '\0', sizeof(cbd)); printf("playing on all devices...\n"); for (i = 0; i < devcount; i++) {