Skip to content

Commit

Permalink
We don't need to clone the decoded buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyCoolSlug committed Aug 6, 2024
1 parent 4ed12b7 commit 170f75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl Player {

if let Some(ref mut buf) = sample_buffer {
// Grab out the samples..
buf.copy_interleaved_ref(decoded.clone());
buf.copy_interleaved_ref(decoded);
let mut samples = buf.samples().to_vec();

if mono_playback {
Expand Down

0 comments on commit 170f75f

Please sign in to comment.