We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee9b3e4 commit f4e597bCopy full SHA for f4e597b
src/mixer.rs
@@ -134,7 +134,7 @@ impl RecordMixer {
134
/// Note: Cloning a [`Sound`] *does not* take any extra memory, as [`Sound`]
135
/// shares frame data with all clones.
136
#[inline]
137
- pub fn play(&mut self, sound: impl Into<SoundHandle>) -> SoundHandle {
+ pub fn play(&self, sound: impl Into<SoundHandle>) -> SoundHandle {
138
let handle: SoundHandle = sound.into();
139
self.renderer.guard().add_sound(handle.clone());
140
handle
0 commit comments