mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-25 07:22:00 +00:00
Renamed SDL_PROP_AUDIOSTREAM_KEEP_ON_SHUTDOWN_BOOLEAN to SDL_PROP_AUDIOSTREAM_AUTO_CLEANUP_BOOLEAN
This commit is contained in:
parent
6cfe211142
commit
aa4f916b71
2 changed files with 3 additions and 7 deletions
|
|
@ -1077,7 +1077,7 @@ void SDL_QuitAudio(void)
|
|||
SDL_AudioStream *next = NULL;
|
||||
for (SDL_AudioStream *i = current_audio.existing_streams; i; i = next) {
|
||||
next = i->next;
|
||||
if (i->simplified || !SDL_GetBooleanProperty(i->props, SDL_PROP_AUDIOSTREAM_KEEP_ON_SHUTDOWN_BOOLEAN, false)) {
|
||||
if (i->simplified || SDL_GetBooleanProperty(i->props, SDL_PROP_AUDIOSTREAM_AUTO_CLEANUP_BOOLEAN, true)) {
|
||||
SDL_DestroyAudioStream(i);
|
||||
} else {
|
||||
i->prev = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue