We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffb22a5 commit be4ed17Copy full SHA for be4ed17
1 file changed
native/app/Source/Extensions/AudioDevice.swift
@@ -187,15 +187,9 @@ extension AudioDevice {
187
188
static public var builtInOutputDevice: AudioDevice {
189
get {
190
- var device: AudioDevice? = AudioDevice.allOutputDevices().first( where: { (device) -> Bool in
+ let device: AudioDevice? = AudioDevice.allOutputDevices().first( where: { (device) -> Bool in
191
device.transportType == TransportType.builtIn
192
})
193
- if device == nil {
194
- sleep(4)
195
- device = AudioDevice.allOutputDevices().first( where: { (device) -> Bool in
196
- device.transportType == TransportType.builtIn
197
- })
198
- }
199
return device!
200
}
201
0 commit comments