Replaced a few memset/memcpy calls with SDL_memset/SDL_memcpy.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 05 Jul 2007 02:47:54 +0000
changeset 21469fcde304c7b6
parent 2145 5c14978b1e97
child 2147 a5f11bc178b4
Replaced a few memset/memcpy calls with SDL_memset/SDL_memcpy.
test/testmultiaudio.c
     1.1 --- a/test/testmultiaudio.c	Thu Jul 05 02:45:47 2007 +0000
     1.2 +++ b/test/testmultiaudio.c	Thu Jul 05 02:47:54 2007 +0000
     1.3 @@ -21,12 +21,12 @@
     1.4      if (cpy > waveleft)
     1.5          cpy = waveleft;
     1.6  
     1.7 -    memcpy(stream, waveptr, cpy);
     1.8 +    SDL_memcpy(stream, waveptr, cpy);
     1.9      len -= cpy;
    1.10      cbd->soundpos += cpy;
    1.11      if (len > 0) {
    1.12          stream += cpy;
    1.13 -        memset(stream, spec.silence, len);
    1.14 +        SDL_memset(stream, spec.silence, len);
    1.15          cbd->done++;
    1.16      }
    1.17  }
    1.18 @@ -51,7 +51,7 @@
    1.19          printf("playing on device #%d: ('%s')...", i, devname);
    1.20          fflush(stdout);
    1.21  
    1.22 -        memset(&cbd[0], '\0', sizeof(callback_data));
    1.23 +        SDL_memset(&cbd[0], '\0', sizeof(callback_data));
    1.24          spec.userdata = &cbd[0];
    1.25          cbd[0].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL);
    1.26          if (cbd[0].dev == 0) {
    1.27 @@ -66,7 +66,7 @@
    1.28          }
    1.29      }
    1.30  
    1.31 -    memset(cbd, '\0', sizeof(cbd));
    1.32 +    SDL_memset(cbd, '\0', sizeof(cbd));
    1.33  
    1.34      printf("playing on all devices...\n");
    1.35      for (i = 0; i < devcount; i++) {