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

Example fails when using ALSA through PulseAudio #173

Closed
Bobo1239 opened this issue Oct 22, 2017 · 2 comments
Closed

Example fails when using ALSA through PulseAudio #173

Bobo1239 opened this issue Oct 22, 2017 · 2 comments

Comments

@Bobo1239
Copy link
Contributor

Bobo1239 commented Oct 22, 2017

When ALSA is using PulseAudio, the reported maximum sample rate is garbage (4294967295) and the beep example fails with sample rate could not be set: "Invalid argument". (See e.g. here for the reported values) Setting the sample rate manually works flawlessly.

I'm not sure if this is really fixable or if the example should just use a common sample rate. This problem also makes rodio completely unusable on my system as it also always uses the maximum sample rate.

@tomaka tomaka added the bug label Oct 22, 2017
@0e4ef622
Copy link

0e4ef622 commented Feb 15, 2018

This also seems to happen when using ALSA plugins that convert sample rates.

EDIT: Just tried with the latest version, it works. idk about Pulse though

@Bobo1239
Copy link
Contributor Author

This is indeed fixed now as the example is using device.default_output_format() which defaults to a sane value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants