mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-04 22:59:49 +00:00
Fixed detecting CoreAudio devices that have both capture and output endpoints
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user