mirror of https://github.com/libsdl-org/SDL.git
testaudio: Use SDL_SetAppMetadata at startup.
This helps in finding its outputs in system lists of PipeWire streams, etc.
This commit is contained in:
parent
a9bee3c0bf
commit
18a86ea6bb
|
|
@ -1060,6 +1060,10 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
char version[32]; /* use SDL's version number, since this test program is part of SDL's sources. */
|
||||||
|
SDL_snprintf(version, sizeof (version), "%d.%d.%d", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION);
|
||||||
|
SDL_SetAppMetadata("SDL testaudio", version, "org.libsdl.testaudio");
|
||||||
|
|
||||||
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO | SDL_INIT_AUDIO);
|
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO | SDL_INIT_AUDIO);
|
||||||
if (!state) {
|
if (!state) {
|
||||||
return SDL_APP_FAILURE;
|
return SDL_APP_FAILURE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue