audio: expose output stream without a host sink#223
Open
shreyas-blacksmith wants to merge 1 commit into
Open
Conversation
shreyas-blacksmith
marked this pull request as ready for review
July 24, 2026 14:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue(s) this PR fixes:
Fixes #222
Additional documentation
This exposes the base
VZVirtioSoundDeviceOutputStreamConfigurationthrough the Go API without assigning aVZHostAudioOutputStreamSink.The Objective-C constructor already exists in
virtualization_12.m; this change adds the matching Go wrapper, constructor, finalizer, interface assertion, and macOS 12 availability coverage. Existing host-audio input and output constructors are unchanged.Apple documents that the output stream's sink defaults to
niland that omitting a sink suppresses the audio:https://developer.apple.com/documentation/virtualization/vzvirtiosounddeviceoutputstreamconfiguration/sink
This is useful for headless VMs that need to expose a playback device to the guest without depending on or playing through the host's default audio device.
Validation
go test . -run '^TestAvailableVersion$' -count=1This pull request was prepared with AI assistance and reviewed and validated against the native API and downstream end-to-end behavior.