mirror of https://github.com/neutrinolabs/xrdp
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:
commit
42150c5c4f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue