Skip to content

Commit

Permalink
Add virtual sound devices (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov authored May 16, 2022
1 parent 60b7054 commit 0fc3d3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/tart/VM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit 0fc3d3d

Please sign in to comment.