From 87c89f0aa28f68fb1599bd97b9b7bde5c258d25b Mon Sep 17 00:00:00 2001 From: Alexandre Quesnel <131881+aquesnel@users.noreply.github.com> Date: Sat, 23 Jan 2021 22:57:15 +0000 Subject: [PATCH] Fixing TS_PLAY_SOUND_PDU_DATA to set the correct frequency and duration --- libxrdp/libxrdp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c index a93acc5c..f36ea40e 100644 --- a/libxrdp/libxrdp.c +++ b/libxrdp/libxrdp.c @@ -376,9 +376,11 @@ libxrdp_send_bell(struct xrdp_session *session) return 1; } - out_uint32_le(s, 440); /* frequency */ out_uint32_le(s, 100); /* duration (ms) */ + out_uint32_le(s, 440); /* frequency */ s_mark_end(s); + LOG_DEVEL(LOG_LEVEL_TRACE, "Sending [MS-RDPBCGR] TS_PLAY_SOUND_PDU_DATA " + "duration 100 ms, frequency 440 Hz"); if (xrdp_rdp_send_data((struct xrdp_rdp *)session->rdp, s, RDP_DATA_PDU_PLAY_SOUND) != 0) {