diff options
author | Giovanni Panozzo <giovanni@panozzo.it> | 2018-07-27 22:04:16 +0300 |
---|---|---|
committer | Giovanni Panozzo <giovanni@panozzo.it> | 2018-07-27 22:04:16 +0300 |
commit | 61b528ed934cd6b6082fa69e96a8d98614288308 (patch) | |
tree | 7367be7ee3730aa86c94deb65c6f2d90030315e0 | |
parent | 123ecaef430f9c1612c5de5acacb900242eadf14 (diff) |
RDP sound setup
-rw-r--r-- | plugins/rdp/rdp_plugin.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/rdp/rdp_plugin.c b/plugins/rdp/rdp_plugin.c index 0b5a3f32a..5a88a2a54 100644 --- a/plugins/rdp/rdp_plugin.c +++ b/plugins/rdp/rdp_plugin.c @@ -872,12 +872,17 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget* gp) * the "disp" dynamic channel, if available */ rfi->settings->SupportDisplayControl = TRUE; + /* Sound settings */ + cs = remmina_plugin_service->file_get_string(remminafile, "sound"); if (g_strcmp0(cs, "remote") == 0) { - rfi->settings->RemoteConsoleAudio = 1; + rfi->settings->RemoteConsoleAudio = TRUE; }else if (g_str_has_prefix(cs, "local")) { + rfi->settings->AudioPlayback = TRUE; + rfi->settings->DeviceRedirection = TRUE; /* rdpsnd requires rdpdr to be registered */ + rdpsnd_nparams = 0; rdpsnd_params[rdpsnd_nparams++] = "rdpsnd"; @@ -900,6 +905,10 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget* gp) freerdp_client_add_static_channel(rfi->settings, rdpsnd_nparams, (char**)rdpsnd_params); + }else { + /* Disable sound */ + rfi->settings->AudioPlayback = FALSE; + rfi->settings->RemoteConsoleAudio = FALSE; } if ( remmina_plugin_service->file_get_int(remminafile, "microphone", FALSE) ? TRUE : FALSE ) { |