Asio Convert Bug: SingleToInt24, DoubleToInt24 conversion routines
Brought to you by:
cwbudde
There is a bug in the SingleToInt24 and DoubleToInt24 conversion routines in DAV_AsioConvert.
My Steinberg Asio interface kept crashing.
One Byte too many written at the of the loop. For every step it writes for 4 bytes instead of 3.
Example:
for SampleIndex := 0 to SampleCount - 1 do
begin
PInteger(TargetByte)^ := Round(SourceArray^[SampleIndex] * CFloatToInt24);
Inc(TargetByte, 3);
end;
Thanks.