mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[channels,rdpsnd] fix warnings, add new fields
* Fix warnings in client and server channels * Add some data read from packets to exported fields of RdpsndServerContext
This commit is contained in:
parent
4c1cc2cc0c
commit
cb8176d2e7
@ -712,9 +712,11 @@ static UINT rdpsnd_recv_wave2_pdu(rdpsndPlugin* rdpsnd, wStream* s, UINT16 BodyS
|
|||||||
rdpsnd->waveDataSize = BodySize - 12;
|
rdpsnd->waveDataSize = BodySize - 12;
|
||||||
rdpsnd->wArrivalTime = GetTickCount64();
|
rdpsnd->wArrivalTime = GetTickCount64();
|
||||||
WLog_Print(rdpsnd->log, WLOG_DEBUG,
|
WLog_Print(rdpsnd->log, WLOG_DEBUG,
|
||||||
"%s Wave2PDU: cBlockNo: %" PRIu8 " wFormatNo: %" PRIu16 " [%s] , align=%hu",
|
"%s Wave2PDU: cBlockNo: %" PRIu8 " wFormatNo: %" PRIu16
|
||||||
|
" [%s] , align=%hu wTimeStamp=0x%04" PRIx16 ", dwAudioTimeStamp=0x%08" PRIx32,
|
||||||
rdpsnd_is_dyn_str(rdpsnd->dynamic), rdpsnd->cBlockNo, wFormatNo,
|
rdpsnd_is_dyn_str(rdpsnd->dynamic), rdpsnd->cBlockNo, wFormatNo,
|
||||||
audio_format_get_tag_string(format->wFormatTag), format->nBlockAlign);
|
audio_format_get_tag_string(format->wFormatTag), format->nBlockAlign,
|
||||||
|
rdpsnd->wTimeStamp, dwAudioTimeStamp);
|
||||||
|
|
||||||
if (!rdpsnd_ensure_device_is_open(rdpsnd, wFormatNo, format))
|
if (!rdpsnd_ensure_device_is_open(rdpsnd, wFormatNo, format))
|
||||||
return ERROR_INTERNAL_ERROR;
|
return ERROR_INTERNAL_ERROR;
|
||||||
|
@ -185,8 +185,6 @@ static UINT rdpsnd_server_recv_quality_mode(RdpsndServerContext* context, wStrea
|
|||||||
static UINT rdpsnd_server_recv_formats(RdpsndServerContext* context, wStream* s)
|
static UINT rdpsnd_server_recv_formats(RdpsndServerContext* context, wStream* s)
|
||||||
{
|
{
|
||||||
UINT16 num_known_format = 0;
|
UINT16 num_known_format = 0;
|
||||||
UINT16 udpPort = 0;
|
|
||||||
BYTE lastblock = 0;
|
|
||||||
UINT error = CHANNEL_RC_OK;
|
UINT error = CHANNEL_RC_OK;
|
||||||
|
|
||||||
WINPR_ASSERT(context);
|
WINPR_ASSERT(context);
|
||||||
@ -197,9 +195,9 @@ static UINT rdpsnd_server_recv_formats(RdpsndServerContext* context, wStream* s)
|
|||||||
Stream_Read_UINT32(s, context->capsFlags); /* dwFlags */
|
Stream_Read_UINT32(s, context->capsFlags); /* dwFlags */
|
||||||
Stream_Read_UINT32(s, context->initialVolume); /* dwVolume */
|
Stream_Read_UINT32(s, context->initialVolume); /* dwVolume */
|
||||||
Stream_Read_UINT32(s, context->initialPitch); /* dwPitch */
|
Stream_Read_UINT32(s, context->initialPitch); /* dwPitch */
|
||||||
Stream_Read_UINT16(s, udpPort); /* wDGramPort */
|
Stream_Read_UINT16(s, context->udpPort); /* wDGramPort */
|
||||||
Stream_Read_UINT16(s, context->num_client_formats); /* wNumberOfFormats */
|
Stream_Read_UINT16(s, context->num_client_formats); /* wNumberOfFormats */
|
||||||
Stream_Read_UINT8(s, lastblock); /* cLastBlockConfirmed */
|
Stream_Read_UINT8(s, context->lastblock); /* cLastBlockConfirmed */
|
||||||
Stream_Read_UINT16(s, context->clientVersion); /* wVersion */
|
Stream_Read_UINT16(s, context->clientVersion); /* wVersion */
|
||||||
Stream_Seek_UINT8(s); /* bPad */
|
Stream_Seek_UINT8(s); /* bPad */
|
||||||
|
|
||||||
|
@ -177,6 +177,9 @@ extern "C"
|
|||||||
* Only called, when use_dynamic_virtual_channel=TRUE.
|
* Only called, when use_dynamic_virtual_channel=TRUE.
|
||||||
*/
|
*/
|
||||||
psRdpsndChannelIdAssigned ChannelIdAssigned;
|
psRdpsndChannelIdAssigned ChannelIdAssigned;
|
||||||
|
|
||||||
|
UINT16 udpPort; /** @since version 3.14.0 */
|
||||||
|
UINT8 lastblock; /** @since version 3.14.0 */
|
||||||
};
|
};
|
||||||
|
|
||||||
FREERDP_API void rdpsnd_server_context_free(RdpsndServerContext* context);
|
FREERDP_API void rdpsnd_server_context_free(RdpsndServerContext* context);
|
||||||
|
Loading…
Reference in New Issue
Block a user