Skip to content
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

[macOS] Fixed SupportedStreamConfigRange returns same min_samplerate and max_samplerate #926

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomoyanonymous
Copy link

@tomoyanonymous tomoyanonymous commented Nov 12, 2024

On MacOS, Device::supported_output/input_configs returns multiple configs and they are the same values except for min_samplerate and max_samplerate. However, the pair of samplerates are always the same value like min_samplerate:44100, max_samplerate:44100 and min_samplerate:48000, max_samplerate:48000.

With this PR, Device::supported_output/input_configs now returns a combined SupportedStreamConfig. I found this problem when I tried to reorder the available streamconfigs depending on the parameter in my application.

On MacOS, Device::default_input/output_config does not use cmp_default_heuristics (I guess wasapi&asio are the same), but I hope this could be used in every platform ideally (though this PR does not address the implementation of the default config-related method).

Tested on: M1 Macbook Air(2020), macOS 15.0.1

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