fix audio play with sample rate 48000

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-01-07 21:30:13 +08:00
parent 1931cb8c7c
commit 54269b6f5d

View File

@ -586,7 +586,7 @@ impl AudioHandler {
);
audio_buffer.lock().unwrap().extend(buffer);
} else {
audio_buffer.lock().unwrap().extend(buffer.iter().cloned());
audio_buffer.lock().unwrap().extend(buffer[0..n].iter().cloned());
}
}
#[cfg(any(target_os = "android"))]