changeset 2867:eec7adc3d1c5

Updated test for API changes
author Sam Lantinga <slouken@libsdl.org>
date Sat, 13 Dec 2008 12:34:28 +0000
parents e532417a6977
children 3b595278f813
files test/testmultiaudio.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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());
         }