Bug 82160

Summary: Add exception for the setter of value in AudioParam
Product: WebKit Reporter: Gao Chun <chun.gao>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: abarth, chun.gao, crogers, fischman, james.wei, ojan, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Gao Chun
Reported 2012-03-25 19:06:27 PDT
If a value is set outside the allowable range described by minValue and maxValue an exception is thrown.
Attachments
Patch (12.13 KB, patch)
2012-04-06 05:04 PDT, Gao Chun
no flags
Gao Chun
Comment 1 2012-04-06 05:04:44 PDT
Build Bot
Comment 2 2012-04-06 05:30:04 PDT
Chris Rogers
Comment 3 2012-04-06 16:46:18 PDT
Comment on attachment 136004 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=136004&action=review Hi Chun, sorry for the trouble but after some careful thought I don't think we should throw exceptions for values outside the range minValue and maxValue. This is because it will soon become possible to send "audio-rate" signals directly to params and even have negative frequencies (for FM synthesis, etc.) I realize that the spec says it should throw an exception, but I believe this is wrong and the spec should change. Throwing and exception for NaN and Inf still seems Ok > Source/WebCore/Modules/webaudio/AudioGain.h:51 > + I don't think we need to special-case AudioGain - please see below.
Gao Chun
Comment 4 2012-04-08 21:47:44 PDT
Thanks.I Make it invalid.
Eric Seidel (no email)
Comment 5 2012-04-19 15:51:34 PDT
Comment on attachment 136004 [details] Patch Cleared review? from attachment 136004 [details] so that this bug does not appear in http://webkit.org/pending-review. If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).
Note You need to log in before you can comment on or make changes to this bug.