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

"basic" example crashes with PulseAudio on LInux #160

Closed
frazar opened this issue Apr 18, 2018 · 0 comments · Fixed by #162
Closed

"basic" example crashes with PulseAudio on LInux #160

frazar opened this issue Apr 18, 2018 · 0 comments · Fixed by #162

Comments

@frazar
Copy link
Contributor

frazar commented Apr 18, 2018

Running the "basic" example produces a crash on my machine with the following output.

$ cargo run --example basic
    Finished dev [unoptimized + debuginfo] target(s) in 0.23 secs
     Running `target/debug/examples/basic`
thread 'main' panicked at 'sample rate could not be set: "Invalid argument"', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I think this is related to an issue in cpal, where the maximum sample rate reported by ALSA is "garbage" (4294967295) when using PulseAudio.

The issue has has been solved in cpal >= 0.8 by using a better default, so updating the dependency version might be sufficient.

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 a pull request may close this issue.

1 participant