[Webkit-unassigned] [Bug 106001] New: Floating point precision error in AudioPannerNode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 2 23:41:55 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=106001
Summary: Floating point precision error in AudioPannerNode
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: Web Audio
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: praveen.j at samsung.com
CC: crogers at google.com, kaustubh.j at samsung.com
Please refer the sample code here below:
test(function () {
var context = window.AudioContext;
var pannerNode = context.createPanner();
pannerNode.maxDistance = 100.55;
assert_true(pannerNode.maxDistance === 100.55, "AudioPannerNode.maxDistance is float value" + pannerNode.maxDistance);
} );
Expected Result: Assert should return true.
Current Result: Assert is returning false. Because pannerNode.maxDistance is getting value as 100.55000305175781.
Analysis: While setMaxDistance() called, value is set as 100.55000305175781. The conversion is like double->float->double causing precision error.
Verified version: Webkitr-137862.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list