Updated test for API changes
authorSam Lantinga <slouken@libsdl.org>
Sat, 13 Dec 2008 12:34:28 +0000
changeset 2867 eec7adc3d1c5
parent 2866 e532417a6977
child 2868 3b595278f813
Updated test for API changes
test/testmultiaudio.c
--- 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());
         }