mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-12-23 12:26:46 +00:00
fix: rename option no_audio_playback into enable_audio_playback
This commit is contained in:
parent
218fed03c7
commit
5d8a487001
7 changed files with 7 additions and 7 deletions
|
|
@ -417,7 +417,7 @@ impl Config {
|
|||
license_cache: None,
|
||||
enable_server_pointer: !args.no_server_pointer,
|
||||
autologon: args.autologon,
|
||||
no_audio_playback: false,
|
||||
enable_audio_playback: true,
|
||||
request_data: None,
|
||||
pointer_software_rendering: false,
|
||||
performance_flags: PerformanceFlags::default(),
|
||||
|
|
|
|||
|
|
@ -725,7 +725,7 @@ fn create_client_info_pdu(config: &Config, client_addr: &SocketAddr) -> rdp::Cli
|
|||
flags |= ClientInfoFlags::PASSWORD_IS_SC_PIN;
|
||||
}
|
||||
|
||||
if config.no_audio_playback {
|
||||
if !config.enable_audio_playback {
|
||||
flags |= ClientInfoFlags::NO_AUDIO_PLAYBACK;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ pub struct Config {
|
|||
/// If true, the INFO_AUTOLOGON flag is set in the [`ClientInfoPdu`](ironrdp_pdu::rdp::ClientInfoPdu)
|
||||
pub autologon: bool,
|
||||
/// If true, the INFO_NOAUDIOPLAYBACK flag is set in the [`ClientInfoPdu`](ironrdp_pdu::rdp::ClientInfoPdu)
|
||||
pub no_audio_playback: bool,
|
||||
pub enable_audio_playback: bool,
|
||||
pub performance_flags: PerformanceFlags,
|
||||
|
||||
pub license_cache: Option<Arc<dyn LicenseCache>>,
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ fn default_client_config() -> connector::Config {
|
|||
hardware_id: None,
|
||||
request_data: None,
|
||||
autologon: false,
|
||||
no_audio_playback: false,
|
||||
enable_audio_playback: true,
|
||||
license_cache: None,
|
||||
enable_server_pointer: true,
|
||||
pointer_software_rendering: true,
|
||||
|
|
|
|||
|
|
@ -889,7 +889,7 @@ fn build_config(
|
|||
platform: ironrdp::pdu::rdp::capability_sets::MajorPlatformType::UNSPECIFIED,
|
||||
enable_server_pointer: false,
|
||||
autologon: false,
|
||||
no_audio_playback: true,
|
||||
enable_audio_playback: false,
|
||||
request_data: None,
|
||||
pointer_software_rendering: false,
|
||||
performance_flags: PerformanceFlags::default(),
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ fn build_config(username: String, password: String, domain: Option<String>) -> c
|
|||
enable_server_pointer: false, // Disable custom pointers (there is no user interaction anyway).
|
||||
request_data: None,
|
||||
autologon: false,
|
||||
no_audio_playback: true,
|
||||
enable_audio_playback: false,
|
||||
pointer_software_rendering: true,
|
||||
performance_flags: PerformanceFlags::default(),
|
||||
desktop_scale_factor: 0,
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ pub mod ffi {
|
|||
|
||||
enable_server_pointer: self.enable_server_pointer.unwrap_or(false),
|
||||
autologon: self.autologon.unwrap_or(false),
|
||||
no_audio_playback: self.no_audio_playback.unwrap_or(false),
|
||||
enable_audio_playback: self.no_audio_playback.unwrap_or(true),
|
||||
request_data: None,
|
||||
pointer_software_rendering: self.pointer_software_rendering.unwrap_or(false),
|
||||
performance_flags: self.performance_flags.ok_or("performance flag is missing")?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue