[alsa-devel] Boundary calculation

Clemens Ladisch clemens at ladisch.de
Tue Jul 17 17:33:43 CEST 2018


Ricardo Biehl Pasquali wrote:
> Clemens Ladisch wrote:
>> To ensure that the factor is a power of two.
>
> Ok, but why LONG_MAX - buffer_size?

To ensure that adding the position in the buffer to the current pointer
will not overflow.


Regards,
Clemens


More information about the Alsa-devel mailing list