rdpsnd_pulse: Use C99 constants

This commit is contained in:
Igor V. Kovalenko 2023-11-02 20:37:26 +03:00 committed by akallabeth
parent 2867c806fc
commit cfcb363c4a

View File

@ -406,11 +406,11 @@ static BOOL rdpsnd_pulse_open_stream(rdpsndDevicePlugin* device)
if (pulse->latency > 0) if (pulse->latency > 0)
{ {
buffer_attr.maxlength = (UINT32)-1; buffer_attr.maxlength = UINT32_MAX;
buffer_attr.tlength = pa_usec_to_bytes(pulse->latency * 1000, &pulse->sample_spec); buffer_attr.tlength = pa_usec_to_bytes(pulse->latency * 1000, &pulse->sample_spec);
buffer_attr.prebuf = (UINT32)-1; buffer_attr.prebuf = UINT32_MAX;
buffer_attr.minreq = (UINT32)-1; buffer_attr.minreq = UINT32_MAX;
buffer_attr.fragsize = (UINT32)-1; buffer_attr.fragsize = UINT32_MAX;
flags |= PA_STREAM_ADJUST_LATENCY; flags |= PA_STREAM_ADJUST_LATENCY;
} }