@@ -19,7 +19,7 @@ class Outputs {
1919
2020 static func isDeviceAllowed( _ device: AudioDevice ) -> Bool {
2121 return device. transportType != nil
22- && Constants . SUPPORTED_TRANSPORT_TYPES. contains ( device. transportType!)
22+ && SUPPORTED_TRANSPORT_TYPES . contains ( device. transportType!)
2323 && !device. isInputOnlyDevice ( )
2424 && !device. name. contains ( " CADefaultDeviceAggregate " )
2525 && device. uid != Constants . DRIVER_DEVICE_UID
@@ -28,10 +28,25 @@ class Outputs {
2828
2929 static func shouldAutoSelect ( _ device: AudioDevice ) -> Bool {
3030 let types : [ TransportType ] = [ . bluetooth, . bluetoothLE, . builtIn]
31- return Outputs . isDeviceAllowed ( device) && types. contains ( device. transportType!)
31+ return isDeviceAllowed ( device) && types. contains ( device. transportType!)
3232 }
3333
3434 static var allowedDevices : [ AudioDevice ] {
3535 return AudioDevice . allOutputDevices ( ) . filter ( { isDeviceAllowed ( $0) } )
3636 }
37+
38+ static let SUPPORTED_TRANSPORT_TYPES = [
39+ TransportType . airPlay,
40+ TransportType . bluetooth,
41+ TransportType . bluetoothLE,
42+ TransportType . builtIn,
43+ TransportType . displayPort,
44+ TransportType . fireWire,
45+ TransportType . hdmi,
46+ TransportType . pci,
47+ TransportType . thunderbolt,
48+ TransportType . usb,
49+ TransportType . aggregate,
50+ TransportType . virtual
51+ ]
3752}
0 commit comments