SDL: Fixed detecting CoreAudio devices that have both capture and output endpoints

From 87235e0f6db1ad760fe4119ce44a8dc9d89af6ef Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 28 Mar 2024 18:35:42 -0700
Subject: [PATCH] Fixed detecting CoreAudio devices that have both capture and
 output endpoints

---
 src/audio/coreaudio/SDL_coreaudio.m | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/audio/coreaudio/SDL_coreaudio.m b/src/audio/coreaudio/SDL_coreaudio.m
index c38fa520bb1a9..d58269639d22d 100644
--- a/src/audio/coreaudio/SDL_coreaudio.m
+++ b/src/audio/coreaudio/SDL_coreaudio.m
@@ -207,8 +207,6 @@ static void RefreshPhysicalDevices(void)
                        (int)i, name, (int)dev);
                 #endif
 
-                devs[i] = 0;  // don't bother checking this one on the next iscapture iteration of the loop
-
                 SDL_AudioDevice *device = SDL_AddAudioDevice(iscapture ? SDL_TRUE : SDL_FALSE, name, &spec, (void *)((size_t)dev));
                 if (device) {
                     AudioObjectAddPropertyListener(dev, &alive_address, DeviceAliveNotification, device);