Skip to content

Commit f4e597b

Browse files
authored
Merge pull request #6 from rafalmiel/record-mixer-fix
Make RecordMixer::play method immutable
1 parent ee9b3e4 commit f4e597b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mixer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl RecordMixer {
134134
/// Note: Cloning a [`Sound`] *does not* take any extra memory, as [`Sound`]
135135
/// shares frame data with all clones.
136136
#[inline]
137-
pub fn play(&mut self, sound: impl Into<SoundHandle>) -> SoundHandle {
137+
pub fn play(&self, sound: impl Into<SoundHandle>) -> SoundHandle {
138138
let handle: SoundHandle = sound.into();
139139
self.renderer.guard().add_sound(handle.clone());
140140
handle

0 commit comments

Comments
 (0)