Alex Villacís Lasso wrote:
During the winealsa tests, I am frequently annoyed by the following:
say, in playing a 11050Hz secondary buffer with an 8000Hz primary
buffer, the number of samples are converted form secondary->primary
and back. In the process, the number of consumed samples in the
secondary buffer drifts by a few frames from the actual value, and
this triggers the warning about "problem with underflow detection".
This patch allows a tolerance of up to 4 bytes before issuing the
message.
Alex Villacís Lasso
Or you could keep track of the round off errors (fractions) like winex does.