We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50d35f6 commit edb9b27Copy full SHA for edb9b27
1 file changed
src/lib.rs
@@ -48,7 +48,8 @@
48
//!
49
//! // Load a sound from a file, using a path relative to Cargo.toml
50
//! let file = BufReader::new(File::open("examples/music.ogg").unwrap());
51
-//! rodio::play(&stream_handle.mixer(), file).unwrap();
+//! // Note that the playback stops when the sink is dropped
52
+//! let sink = rodio::play(&stream_handle.mixer(), file).unwrap();
53
54
//! // The sound plays in a separate audio thread,
55
//! // so we need to keep the main thread alive while it's playing.
0 commit comments