We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a23d2c + 2427bde commit 7a10534Copy full SHA for 7a10534
src/lib.rs
@@ -20,7 +20,8 @@
20
//! use std::io::BufReader;
21
//! use rodio::{Decoder, OutputStream, source::Source};
22
//!
23
-//! // Get an output stream handle to the default physical sound device
+//! // Get an output stream handle to the default physical sound device.
24
+//! // Note that no sound will be played if _stream is dropped
25
//! let (_stream, stream_handle) = OutputStream::try_default().unwrap();
26
//! // Load a sound from a file, using a path relative to Cargo.toml
27
//! let file = BufReader::new(File::open("examples/music.ogg").unwrap());
0 commit comments