mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-21 11:50:59 +03:00
fix(android): exclude android from fixed 64 audio buffer size (#16198)
This commit is contained in:
@@ -2347,9 +2347,9 @@ impl AudioHandler {
|
|||||||
log::info!("Remote input format: {:?}", format0);
|
log::info!("Remote input format: {:?}", format0);
|
||||||
#[allow(unused_mut)]
|
#[allow(unused_mut)]
|
||||||
let mut config: StreamConfig = config.into();
|
let mut config: StreamConfig = config.into();
|
||||||
#[cfg(not(target_os = "ios"))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
{
|
{
|
||||||
// this makes ios audio output not work
|
// this makes ios and android audio output not work
|
||||||
config.buffer_size = cpal::BufferSize::Fixed(64);
|
config.buffer_size = cpal::BufferSize::Fixed(64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user