RustAudio / cpal

Cross-platform audio I/O library in pure Rust
Apache License 2.0
2.53k stars 338 forks source link

record_wav example, question about using Option #895

Open RainerZufall187 opened 5 days ago

RainerZufall187 commented 5 days ago

why does this line use Option? https://github.com/RustAudio/cpal/blob/0246442da2f401895d2c82bbf941e3ebf6e93a04/examples/record_wav.rs#L91

Ralith commented 5 days ago

What does the compiler say when you remove it?