|
|
@ -60,8 +60,8 @@ public: |
|
|
|
|
|
|
|
|
if (devices) { |
|
|
if (devices) { |
|
|
for (int i = 0; i < count; ++i) { |
|
|
for (int i = 0; i < count; ++i) { |
|
|
const char* name = SDL_GetAudioDeviceName(devices[i]); |
|
|
|
|
|
if (name && device_name == name) { |
|
|
|
|
|
|
|
|
const char* devname = SDL_GetAudioDeviceName(devices[i]); |
|
|
|
|
|
if (devname && device_name == devname) { |
|
|
device_id = devices[i]; |
|
|
device_id = devices[i]; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
@ -280,4 +280,4 @@ u32 GetSDLLatency() { |
|
|
return TargetSampleCount * 2; |
|
|
return TargetSampleCount * 2; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} // namespace AudioCore::Sink
|
|
|
|
|
|
|
|
|
} // namespace AudioCore::Sink
|