RESOLVED FIXED 215905
AudioParam's minValue / maxValue are ignored
https://bugs.webkit.org/show_bug.cgi?id=215905
Summary AudioParam's minValue / maxValue are ignored
Chris Dumez
Reported 2020-08-27 16:33:56 PDT
AudioParam's minValue / maxValue are ignored, we never use them to actually clamp the AudioParam's values.
Attachments
Patch (50.48 KB, patch)
2020-08-27 16:36 PDT, Chris Dumez
no flags
Patch (50.50 KB, patch)
2020-08-27 16:49 PDT, Chris Dumez
no flags
Patch (51.38 KB, patch)
2020-08-27 19:07 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2020-08-27 16:36:33 PDT
Chris Dumez
Comment 2 2020-08-27 16:49:52 PDT
Darin Adler
Comment 3 2020-08-27 17:46:56 PDT
Comment on attachment 407436 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407436&action=review > Source/WebCore/Modules/webaudio/AudioParamTimeline.h:55 > + float valueForContextTime(BaseAudioContext&, float defaultValue, float minValue, float maxValue, bool& hasValue); Seems like we’d use optional for this instead of a "hasValue" out argument if we were writing the code rather than importing code already written. > Source/WebCore/Modules/webaudio/AudioParamTimeline.h:62 > + float valuesForTimeRange(Seconds startTime, Seconds endTime, float defaultValue, float minValue, float maxValue, float* values, unsigned numberOfValues, double sampleRate, double controlRate); Eventually such a large number of arguments starts calling for use of a structure.
Chris Dumez
Comment 4 2020-08-27 19:07:43 PDT
EWS
Comment 5 2020-08-27 19:56:50 PDT
Committed r266270: <https://trac.webkit.org/changeset/266270> All reviewed patches have been landed. Closing bug and clearing flags on attachment 407445 [details].
Radar WebKit Bug Importer
Comment 6 2020-08-27 19:57:18 PDT
Note You need to log in before you can comment on or make changes to this bug.