Skip to content

Commit 3b3f684

Browse files
Add Send bound for SoundStream trait
1 parent 630a6c2 commit 3b3f684

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/audio/sound_stream.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ use {
88
};
99

1010
/// Trait for streamed audio sources.
11-
pub trait SoundStream {
11+
///
12+
/// The implementor must be able to be sent to another thread, so it must
13+
/// implement [`Send`].
14+
pub trait SoundStream: Send {
1215
/// Request a new chunk of audio samples from the stream source.
1316
///
1417
/// Returns `(chunk, keep_playing)`, where `chunk` is the chunk of audio samples,

0 commit comments

Comments
 (0)