Skip to content

Filter out null in sink fallback#862

Merged
yara-blue merged 1 commit intomasterfrom
filter-out-null
Mar 4, 2026
Merged

Filter out null in sink fallback#862
yara-blue merged 1 commit intomasterfrom
filter-out-null

Conversation

@yara-blue
Copy link
Member

Cpal has (correctly) started listing the null device in 0.17. This messes up our Sink's fallback strategy since it can now land on the null device (which happily eats all samples without producing any sound.) This fixes that by filtering it out.

Our microphone input has a different API, it does not have fallback. We provide a method to list all input devices which was now including null, a possible footgun if users try to implement fallback themselves. We've taken that out for now.

In my opinion automatic fallback at the Rodio layer makes no sense whatsoever. It is therefore excluded from the new output device API (working title speakers).

@yara-blue yara-blue merged commit b96b2af into master Mar 4, 2026
3 checks passed
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