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 dcca5ad366
commit 0774ea7d4c

View File

@ -412,11 +412,11 @@ static BOOL rdpsnd_pulse_open_stream(rdpsndDevicePlugin* device)
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.prebuf = (UINT32)-1;
buffer_attr.minreq = (UINT32)-1;
buffer_attr.fragsize = (UINT32)-1;
buffer_attr.prebuf = UINT32_MAX;
buffer_attr.minreq = UINT32_MAX;
buffer_attr.fragsize = UINT32_MAX;
flags |= PA_STREAM_ADJUST_LATENCY;
}