[webaudio] Use lengthAsSizeT in WaveShaperNode
This CL replaces calls to deprecatedLengthAsUnsigned by calls to lengthAsSizeT. Unfortunately the current implementation cannot deal with huge ArrayBuffers yet. Therefore I reject the incoming ArrayBuffers with a RangeError if its size is too big. Background: we prepare ArrayBuffers to be bigger than 4GB. Therefore we changed the size field to size_t. Now we are changing all uses of ByteLength to be able to deal with size_t, either by accepting a size_t, or by throwing an exception if the size is too big. R=rtoy@chromium.org Bug: chromium:1008840 Change-Id: If2518d9ea341212b9024f2b2f9e0f8d07db9899b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1975883 Commit-Queue: Andreas Haas <ahaas@chromium.org> Reviewed-by:Raymond Toy <rtoy@chromium.org> Cr-Commit-Position: refs/heads/master@{#726450}
Showing
Please register or sign in to comment