SDL: Renamed SDL_PROP_AUDIOSTREAM_KEEP_ON_SHUTDOWN_BOOLEAN to SDL_PROP_AUDIOSTREAM_AUTO_CLEANUP_BOOLEAN

From aa4f916b7145168fd1e56cb504b6734deb9b144d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 22 Jun 2025 21:17:06 -0700
Subject: [PATCH] Renamed SDL_PROP_AUDIOSTREAM_KEEP_ON_SHUTDOWN_BOOLEAN to
 SDL_PROP_AUDIOSTREAM_AUTO_CLEANUP_BOOLEAN

---
 include/SDL3/SDL_audio.h | 8 ++------
 src/audio/SDL_audio.c    | 2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/include/SDL3/SDL_audio.h b/include/SDL3/SDL_audio.h
index ae05e9e03bf3f..b92b2797076b6 100644
--- a/include/SDL3/SDL_audio.h
+++ b/include/SDL3/SDL_audio.h
@@ -1067,11 +1067,7 @@ extern SDL_DECLSPEC SDL_AudioStream * SDLCALL SDL_CreateAudioStream(const SDL_Au
  * The application can hang any data it wants here, but the following
  * properties are understood by SDL:
  *
- * - `SDL_PROP_AUDIOSTREAM_KEEP_ON_SHUTDOWN_BOOLEAN`: if true, the stream will
- *   not be automatically destroyed during SDL_Quit(). This property is
- *   ignored for streams created through SDL_OpenAudioDeviceStream(). Streams
- *   bound to devices that aren't destroyed will still be unbound. Default
- *   false. (since SDL 3.4.0)
+ * - `SDL_PROP_AUDIOSTREAM_AUTO_CLEANUP_BOOLEAN`: if true (the default), the stream be automatically cleaned up when the audio subsystem quits. If set to false, the streams will persist beyond that. This property is ignored for streams created through SDL_OpenAudioDeviceStream(), and will always be cleaned up. Streams that are not cleaned up will still be unbound from devices when the audio subsystem quits. This property was added in SDL 3.4.0.
  *
  * \param stream the SDL_AudioStream to query.
  * \returns a valid property ID on success or 0 on failure; call
@@ -1083,7 +1079,7 @@ extern SDL_DECLSPEC SDL_AudioStream * SDLCALL SDL_CreateAudioStream(const SDL_Au
  */
 extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetAudioStreamProperties(SDL_AudioStream *stream);
 
-#define SDL_PROP_AUDIOSTREAM_KEEP_ON_SHUTDOWN_BOOLEAN "SDL.audiostream.keep_on_shutdown"
+#define SDL_PROP_AUDIOSTREAM_AUTO_CLEANUP_BOOLEAN "SDL.audiostream.auto_cleanup"
 
 
 /**
diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c
index e672e0dac0ff4..526b4cebfc5ba 100644
--- a/src/audio/SDL_audio.c
+++ b/src/audio/SDL_audio.c
@@ -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;