Menu

#12 Asio Convert Bug: SingleToInt24, DoubleToInt24 conversion routines

v1.0_(example)
open
None
8
2013-05-16
2013-05-16
David
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.