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

Panic on Android when enumerating devices using CPAL #43

Closed
torokati44 opened this issue Apr 23, 2022 · 0 comments · Fixed by #44
Closed

Panic on Android when enumerating devices using CPAL #43

torokati44 opened this issue Apr 23, 2022 · 0 comments · Fixed by #44

Comments

@torokati44
Copy link
Contributor

I'm trying to enumerate the available devices on Android using this code, through CPAL:

        let host = cpal::default_host();

        if let Ok(dev) = host.devices() {
            for dev in dev {
                log::warn!("DEVICE: {:?}", dev.name());
            }
        }

When running on a Pixel 4a 5G, I get this panic:

thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /home/attila/.cargo/registry/src/github.com-1ecc6299db9ec823/oboe-0.4.5/src/java_interface/devices_info.rs:64:18

cc: ruffle-rs/ruffle-android#4

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