[Webkit-unassigned] [Bug 74030] New: Webaudio IDL descriptions may not match implementation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 7 15:25:33 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74030

           Summary: Webaudio IDL descriptions may not match implementation
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Audio
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rtoy at chromium.org
                CC: crogers at google.com


Consider the description for AudioBufferSourceNode at 
https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBufferSourceNode-section

The IDL for noteGrainOn says floats are taken for the parameters.  But the actual implementation for noteGrainOn in AudioBufferSourceNode.cpp takes doubles.  I think this means that the javascript floats (64-bit precision floats) are converted to single-precision floats which are then coerced back to double floats.  (This causes a loss of precision.)

I think these should be made consistent.  Either the IDL should specify double floats or the C++ implementation should take floats.

See http://code.google.com/p/chromium/issues/detail?id=106147 for an example of what can happen.

-- 
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