Bug 214381

Summary: Added Fixes for AudioScheduledSourceNode
Product: WebKit Reporter: Clark Wang <clark_wang>
Component: Web AudioAssignee: Clark Wang <clark_wang>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, cdumez, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, jer.noble, kondapallykalyan, philipj, ryuan.choi, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 212611    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Clark Wang
Reported 2020-07-15 15:32:16 PDT
Added in IDL file for AudioScheduledSourceNode and other fixes for this interface. Added in ConstantSourceOptions files. Removed unrestricted keyword from attributes in BaseAudioContext.idl to match spec.
Attachments
Patch (38.70 KB, patch)
2020-07-15 15:45 PDT, Clark Wang
no flags
Patch (38.70 KB, patch)
2020-07-16 07:27 PDT, Clark Wang
no flags
Patch (21.77 KB, patch)
2020-07-16 09:31 PDT, Clark Wang
no flags
Patch (33.74 KB, patch)
2020-07-16 15:23 PDT, Clark Wang
no flags
Patch (33.93 KB, patch)
2020-07-17 11:17 PDT, Clark Wang
no flags
Clark Wang
Comment 1 2020-07-15 15:45:48 PDT
Clark Wang
Comment 2 2020-07-16 07:27:09 PDT
Chris Dumez
Comment 3 2020-07-16 08:22:33 PDT
Comment on attachment 404438 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404438&action=review > Source/WebCore/ChangeLog:9 > + Added in ConstantSourceOptions files. Removed unrestricted keyword from attributes in Please do not put unrelated changes in a single patch.
Clark Wang
Comment 4 2020-07-16 08:44:32 PDT
Ok, let me split up these changes into separate patches. Thanks!
Clark Wang
Comment 5 2020-07-16 09:31:15 PDT
Chris Dumez
Comment 6 2020-07-16 09:38:24 PDT
Comment on attachment 404450 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404450&action=review > Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl:29 > ActiveDOMObject, You should be able to drop this now. > Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl:30 > +] interface AudioBufferSourceNode : AudioScheduledSourceNode { Well, then you'd want to drop start() / stop() / onended from this interface.. > Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.cpp:139 > +ExceptionOr<void> AudioScheduledSourceNode::startLater(Optional<double> optionalWhen) That's wrong. There is already a default value of 0 in the IDL so the generated bindings will always give you a double. > Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.cpp:159 > +ExceptionOr<void> AudioScheduledSourceNode::stopLater(Optional<double> optionalWhen) Ditto. > Source/WebCore/Modules/webaudio/OscillatorNode.idl:37 > ActiveDOMObject, You should be able to drop this now. > Source/WebCore/Modules/webaudio/OscillatorNode.idl:38 > +] interface OscillatorNode : AudioScheduledSourceNode { Well, then you'd want to drop start() / stop() / onended from this interface..
Chris Dumez
Comment 7 2020-07-16 09:38:29 PDT
Comment on attachment 404450 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=404450&action=review > Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl:29 > ActiveDOMObject, You should be able to drop this now. > Source/WebCore/Modules/webaudio/AudioBufferSourceNode.idl:30 > +] interface AudioBufferSourceNode : AudioScheduledSourceNode { Well, then you'd want to drop start() / stop() / onended from this interface.. > Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.cpp:139 > +ExceptionOr<void> AudioScheduledSourceNode::startLater(Optional<double> optionalWhen) That's wrong. There is already a default value of 0 in the IDL so the generated bindings will always give you a double. > Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.cpp:159 > +ExceptionOr<void> AudioScheduledSourceNode::stopLater(Optional<double> optionalWhen) Ditto. > Source/WebCore/Modules/webaudio/OscillatorNode.idl:37 > ActiveDOMObject, You should be able to drop this now. > Source/WebCore/Modules/webaudio/OscillatorNode.idl:38 > +] interface OscillatorNode : AudioScheduledSourceNode { Well, then you'd want to drop start() / stop() / onended from this interface..
Clark Wang
Comment 8 2020-07-16 15:23:36 PDT
Clark Wang
Comment 9 2020-07-17 11:17:11 PDT
EWS
Comment 10 2020-07-17 15:18:10 PDT
Committed r264538: <https://trac.webkit.org/changeset/264538> All reviewed patches have been landed. Closing bug and clearing flags on attachment 404576 [details].
Radar WebKit Bug Importer
Comment 11 2020-07-17 15:19:17 PDT
Note You need to log in before you can comment on or make changes to this bug.