Skip to content

Relax preconditions on kAudioObjectUnknown #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 18, 2025
Merged

Relax preconditions on kAudioObjectUnknown #93

merged 7 commits into from
Jun 18, 2025

Conversation

sbooth
Copy link
Owner

@sbooth sbooth commented Jun 18, 2025

Throw an error instead of crashing since sometimes kAudioObjectUnknown is unavoidable.

Also changes the return type for default device getters to non-optional since they now throw for kAudioObjectUnknown.

@sbooth sbooth merged commit 0f711b1 into main Jun 18, 2025
1 check passed
@sbooth sbooth deleted the precond branch June 18, 2025 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant