Merge pull request #1793 from aquesnel/send_bell_fix

Fixing TS_PLAY_SOUND_PDU_DATA to set the correct frequency and duration
This commit is contained in:
matt335672 2021-01-25 09:12:34 +00:00 committed by GitHub
commit 42150c5c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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)
{