SDL: audio: Use AtomicAdd for device counts, don't treat as a refcount.

https://github.com/libsdl-org/SDL/commit/455eef4cd979c2ff5bf26c33168775be3f195957

From 455eef4cd979c2ff5bf26c33168775be3f195957 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Sat, 22 Jul 2023 11:48:49 -0400
Subject: [PATCH] audio: Use AtomicAdd for device counts, don't treat as a
 refcount.

---
 src/audio/SDL_audio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c
index 9d770b817097..52dc724a86a9 100644
--- a/src/audio/SDL_audio.c
+++ b/src/audio/SDL_audio.c
@@ -254,7 +254,7 @@ static SDL_AudioDevice *CreatePhysicalAudioDevice(const char *name, SDL_bool isc
     }
     device->next = *devices;
     *devices = device;
-    SDL_AtomicIncRef(device_count);
+    SDL_AtomicAdd(device_count, 1);
     SDL_UnlockRWLock(current_audio.device_list_lock);
 
     return device;
@@ -373,7 +373,7 @@ void SDL_AudioDeviceDisconnected(SDL_AudioDevice *device)
     device->prev = NULL;
 
     if (was_live) {
-        SDL_AtomicDecRef(device->iscapture ? &current_audio.capture_device_count : &current_audio.output_device_count);
+        SDL_AtomicAdd(device->iscapture ? &current_audio.capture_device_count : &current_audio.output_device_count, -1);
     }
 
     SDL_UnlockRWLock(current_audio.device_list_lock);