testaudio: the test framework opens an audio device at startup; close it.

Not opening a device at all would be more desirable, though.
main
Ryan C. Gordon 2023-08-08 21:41:37 -04:00
parent 0714da37a4
commit 1022fd6e04
No known key found for this signature in database
GPG Key ID: 3C62BA43B5CCC412
1 changed files with 5 additions and 0 deletions

View File

@ -1036,6 +1036,11 @@ int main(int argc, char *argv[])
Quit(2);
}
if (state->audio_id) {
SDL_CloseAudioDevice(state->audio_id);
state->audio_id = 0;
}
SetDefaultTitleBar();
physdev_texture = CreateTexture("physaudiodev.bmp");