test/testmultiaudio.c
changeset 2867 eec7adc3d1c5
parent 2146 9fcde304c7b6
child 3099 82e60908fab1
     1.1 --- a/test/testmultiaudio.c	Sat Dec 13 06:36:47 2008 +0000
     1.2 +++ b/test/testmultiaudio.c	Sat Dec 13 12:34:28 2008 +0000
     1.3 @@ -53,7 +53,7 @@
     1.4  
     1.5          SDL_memset(&cbd[0], '\0', sizeof(callback_data));
     1.6          spec.userdata = &cbd[0];
     1.7 -        cbd[0].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL);
     1.8 +        cbd[0].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL, 0);
     1.9          if (cbd[0].dev == 0) {
    1.10              printf("Open device failed: %s\n", SDL_GetError());
    1.11          } else {
    1.12 @@ -72,7 +72,7 @@
    1.13      for (i = 0; i < devcount; i++) {
    1.14          const char *devname = SDL_GetAudioDeviceName(i, 0);
    1.15          spec.userdata = &cbd[i];
    1.16 -        cbd[i].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL);
    1.17 +        cbd[i].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL, 0);
    1.18          if (cbd[i].dev == 0) {
    1.19              printf("Open device %d failed: %s\n", i, SDL_GetError());
    1.20          }