mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-18 10:41:03 +03:00
feat: macos, audio, loopback (#10025)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -774,13 +774,6 @@ pub fn main_get_sound_inputs() -> Vec<String> {
|
||||
vec![String::from("")]
|
||||
}
|
||||
|
||||
pub fn main_get_default_sound_input() -> Option<String> {
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
return get_default_sound_input();
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
None
|
||||
}
|
||||
|
||||
pub fn main_get_login_device_info() -> SyncReturn<String> {
|
||||
SyncReturn(get_login_device_info_json())
|
||||
}
|
||||
@@ -2317,6 +2310,16 @@ pub fn session_request_new_display_init_msgs(session_id: SessionID, display: usi
|
||||
}
|
||||
}
|
||||
|
||||
pub fn main_audio_support_loopback() -> SyncReturn<bool> {
|
||||
#[cfg(target_os = "windows")]
|
||||
let is_surpport = true;
|
||||
#[cfg(feature = "screencapturekit")]
|
||||
let is_surpport = crate::audio_service::is_screen_capture_kit_available();
|
||||
#[cfg(not(any(target_os = "windows", feature = "screencapturekit")))]
|
||||
let is_surpport = false;
|
||||
SyncReturn(is_surpport)
|
||||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
pub mod server_side {
|
||||
use hbb_common::{config, log};
|
||||
|
||||
Reference in New Issue
Block a user