chore: Appease clippy

This commit is contained in:
Mike Welsh 2021-05-22 20:00:59 -07:00
parent 8960414436
commit 61e20024e9
1 changed files with 2 additions and 2 deletions

View File

@ -615,13 +615,13 @@ impl WebAudioBackend {
for block in adpcm_block_offsets.windows(2) {
let start = block[0];
let end = block[1];
let mut decoder = AdpcmDecoder::new(
let decoder = AdpcmDecoder::new(
&audio_data[start..end],
format.is_stereo,
format.sample_rate,
);
if format.is_stereo {
while let Some(frame) = decoder.next() {
for frame in decoder {
let (l, r) = (frame[0], frame[1]);
self.left_samples.push(f32::from(l) / 32767.0);
self.right_samples.push(f32::from(r) / 32767.0);