Skip to content
Discussion options

You must be logged in to vote

Ok, I found out how to pick a specific configuration by comparing. SupportedStreamConfigRange has member functions to read out the specs. pub fn channels(&self) -> ChannelCount for instance.

There's something weird with setting the sample rate, though. At this point I'm just using the with_sample_rate() member function to boil down to SupportedStreamConfig and then the config() function to extract a StreamConfig.. Then I change the sample_rate member variable by hand.

SupportedStreamConfigRange::with_sample_rate() seems to be malfunctioning though. It just returns the maximum supported sample_rate.. Which in some cases is 2**32-1.. Maybe I'll have to check again.. I'm running on Linux (AL…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by roderickvd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #513 on August 17, 2026 20:17.