test/testmultiaudio.c
changeset 2867 eec7adc3d1c5
parent 2146 9fcde304c7b6
child 3099 82e60908fab1
--- a/test/testmultiaudio.c	Sat Dec 13 06:36:47 2008 +0000
+++ b/test/testmultiaudio.c	Sat Dec 13 12:34:28 2008 +0000
@@ -53,7 +53,7 @@
 
         SDL_memset(&cbd[0], '\0', sizeof(callback_data));
         spec.userdata = &cbd[0];
-        cbd[0].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL);
+        cbd[0].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL, 0);
         if (cbd[0].dev == 0) {
             printf("Open device failed: %s\n", SDL_GetError());
         } else {
@@ -72,7 +72,7 @@
     for (i = 0; i < devcount; i++) {
         const char *devname = SDL_GetAudioDeviceName(i, 0);
         spec.userdata = &cbd[i];
-        cbd[i].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL);
+        cbd[i].dev = SDL_OpenAudioDevice(devname, 0, &spec, NULL, 0);
         if (cbd[i].dev == 0) {
             printf("Open device %d failed: %s\n", i, SDL_GetError());
         }