equal
deleted
inserted
replaced
44 for (t=0; t<2; t++) { |
44 for (t=0; t<2; t++) { |
45 |
45 |
46 /* Get number of devices. */ |
46 /* Get number of devices. */ |
47 n = SDL_GetNumAudioDevices(t); |
47 n = SDL_GetNumAudioDevices(t); |
48 SDLTest_AssertPass("Call to SDL_GetNumAudioDevices(%i)", t); |
48 SDLTest_AssertPass("Call to SDL_GetNumAudioDevices(%i)", t); |
49 SDLTest_Log("Number of %s devices < 0, reported as %i", (t) ? "output" : "capture", n); |
49 SDLTest_Log("Number of %s devices < 0, reported as %i", (t) ? "capture" : "output", n); |
50 SDLTest_AssertCheck(n >= 0, "Validate result is >= 0, got: %i", n); |
50 SDLTest_AssertCheck(n >= 0, "Validate result is >= 0, got: %i", n); |
51 |
51 |
52 /* Variation of non-zero type */ |
52 /* Variation of non-zero type */ |
53 if (t==1) { |
53 if (t==1) { |
54 tt = t + SDLTest_RandomIntegerInRange(1,10); |
54 tt = t + SDLTest_RandomIntegerInRange(1,10); |