mirror of https://github.com/cirruslabs/tart.git
Add virtual sound devices (#78)
This commit is contained in:
parent
60b705478b
commit
0fc3d3d1f4
|
|
@ -185,6 +185,11 @@ class VM: NSObject, VZVirtualMachineDelegate, ObservableObject {
|
|||
]
|
||||
configuration.graphicsDevices = [graphicsDeviceConfiguration]
|
||||
|
||||
// Audio
|
||||
let soundDeviceConfiguration = VZVirtioSoundDeviceConfiguration()
|
||||
soundDeviceConfiguration.streams = [VZVirtioSoundDeviceInputStreamConfiguration(), VZVirtioSoundDeviceOutputStreamConfiguration()]
|
||||
configuration.audioDevices = [soundDeviceConfiguration]
|
||||
|
||||
// Keyboard and mouse
|
||||
configuration.keyboards = [VZUSBKeyboardConfiguration()]
|
||||
configuration.pointingDevices = [VZUSBScreenCoordinatePointingDeviceConfiguration()]
|
||||
|
|
|
|||
Loading…
Reference in New Issue