mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 18:03:30 +08:00
rdpsnd_pulse: Use C99 constants
This commit is contained in:
parent
2867c806fc
commit
cfcb363c4a
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user