mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-02 18:59:24 +08:00
fix audio play with sample rate 48000
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
1931cb8c7c
commit
54269b6f5d
@ -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"))]
|
||||
|
Loading…
Reference in New Issue
Block a user