Fix incorrect DCHECK in GetFrequencyResponse
The DCHECK was checking that the arrays have positive lengths, but the spec allows zero-length arrays too. So change the spec to check for non-negative values. And also modify getFrequencyResponse to return quickly if the length is 0. This applies to both BiquadFilterNodes and IIRFilterNodes. Bug: 1073557 Change-Id: I8c98cf01021c9ece5731ccf8fdbc1fe8fe97f39c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2163054Reviewed-by:Hongchan Choi <hongchan@chromium.org> Commit-Queue: Raymond Toy <rtoy@chromium.org> Cr-Commit-Position: refs/heads/master@{#762019}
Showing
Please register or sign in to comment