mirror of https://github.com/libsdl-org/SDL.git
testmultiaudio: initialize audio through SDL_test framework
This commit is contained in:
parent
102b3b480b
commit
434193d153
|
|
@ -142,7 +142,7 @@ int main(int argc, char **argv)
|
||||||
SDLTest_CommonState *state;
|
SDLTest_CommonState *state;
|
||||||
|
|
||||||
/* Initialize test framework */
|
/* Initialize test framework */
|
||||||
state = SDLTest_CommonCreateState(argv, 0);
|
state = SDLTest_CommonCreateState(argv, SDL_INIT_AUDIO);
|
||||||
if (!state) {
|
if (!state) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
@ -171,7 +171,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load the SDL library */
|
/* Load the SDL library */
|
||||||
if (!SDL_Init(SDL_INIT_AUDIO)) {
|
if (!SDLTest_CommonInit(state)) {
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s\n", SDL_GetError());
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
@ -197,8 +197,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
SDL_free(filename);
|
SDL_free(filename);
|
||||||
|
|
||||||
SDL_Quit();
|
SDLTest_CommonQuit(state);
|
||||||
SDLTest_CommonDestroyState(state);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue