Skip to content

Commit be4ed17

Browse files
virtustilusnodeful
authored andcommitted
Removed waiting for builtin logic
1 parent ffb22a5 commit be4ed17

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

native/app/Source/Extensions/AudioDevice.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,9 @@ extension AudioDevice {
187187

188188
static public var builtInOutputDevice: AudioDevice {
189189
get {
190-
var device: AudioDevice? = AudioDevice.allOutputDevices().first( where: { (device) -> Bool in
190+
let device: AudioDevice? = AudioDevice.allOutputDevices().first( where: { (device) -> Bool in
191191
device.transportType == TransportType.builtIn
192192
})
193-
if device == nil {
194-
sleep(4)
195-
device = AudioDevice.allOutputDevices().first( where: { (device) -> Bool in
196-
device.transportType == TransportType.builtIn
197-
})
198-
}
199193
return device!
200194
}
201195
}

0 commit comments

Comments
 (0)