We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
input_devices
The below code is causing a memory leak on my machine:
use cpal::traits::HostTrait; fn main() { let host = cpal::ALL_HOSTS .into_iter() .find(|id| id.name() == "WASAPI") .and_then(|id| cpal::host_from_id(*id).ok()) .expect("No WASAPI host found"); loop { let _ = host.input_devices().unwrap().collect::<Vec<_>>(); std::thread::sleep(std::time::Duration::from_millis(10)); } }
rustc -Vv output
rustc 1.72.0 (5680fa18f 2023-08-23) binary: rustc commit-hash: 5680fa18feaa87f3ff04063800aec256c3d4b4be commit-date: 2023-08-23 host: x86_64-pc-windows-msvc release: 1.72.0 LLVM version: 16.0.5
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The below code is causing a memory leak on my machine:
System Info
rustc -Vv output
The text was updated successfully, but these errors were encountered: