WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
215195
DynamicsCompressorNode.reduction attribute should be a float, not an AudioParam
https://bugs.webkit.org/show_bug.cgi?id=215195
Summary
DynamicsCompressorNode.reduction attribute should be a float, not an AudioParam
Chris Dumez
Reported
2020-08-05 15:16:43 PDT
DynamicsCompressorNode.reduction attribute should be a float, not an AudioParam: -
https://webaudio.github.io/web-audio-api/#dynamicscompressornode
Attachments
Patch
(27.56 KB, patch)
2020-08-05 16:20 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2020-08-05 16:20:46 PDT
Created
attachment 406054
[details]
Patch
youenn fablet
Comment 2
2020-08-06 01:32:00 PDT
Comment on
attachment 406054
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=406054&action=review
> Source/WebCore/Modules/webaudio/WebKitAudioContext.idl:79 > + [MayThrowException, ImplementedAs=createWebKitDynamicsCompressor] WebKitDynamicsCompressorNode createDynamicsCompressor();
Do we need this ImplementedAs? IIUC, WebKitAudioContext is already the prefixed version so this might break existing code. Also I do not see any test coverage for createWebKitDynamicsCompressor also.
> Source/WebCore/Modules/webaudio/WebKitDynamicsCompressorNode.h:40 > + AudioParam& legacyReduction() { return m_legacyReduction.get(); }
Seems a bit odd to have one one-liner in the same line as the declaration and another one-liner on a different line.
> Source/WebCore/Modules/webaudio/WebKitDynamicsCompressorNode.idl:37 > + [ImplementedAs=legacyReduction] readonly attribute AudioParam reduction; // in Decibels
Ditto here about ImplementedAs=legacyReduction, can we do without? I do not see any change to our legacy web audio tests. Does that mean reduction/legacyReduction is not covered?
Chris Dumez
Comment 3
2020-08-06 09:20:35 PDT
(In reply to youenn fablet from
comment #2
)
> Comment on
attachment 406054
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=406054&action=review
> > > Source/WebCore/Modules/webaudio/WebKitAudioContext.idl:79 > > + [MayThrowException, ImplementedAs=createWebKitDynamicsCompressor] WebKitDynamicsCompressorNode createDynamicsCompressor(); > > Do we need this ImplementedAs? > IIUC, WebKitAudioContext is already the prefixed version so this might break > existing code. > Also I do not see any test coverage for createWebKitDynamicsCompressor also.
There is a test here: LayoutTests/webaudio/dynamicscompressor-basic.html: compressor = context.createDynamicsCompressor(); And it is still passing.
> > > Source/WebCore/Modules/webaudio/WebKitDynamicsCompressorNode.h:40 > > + AudioParam& legacyReduction() { return m_legacyReduction.get(); } > > Seems a bit odd to have one one-liner in the same line as the declaration > and another one-liner on a different line. > > > Source/WebCore/Modules/webaudio/WebKitDynamicsCompressorNode.idl:37 > > + [ImplementedAs=legacyReduction] readonly attribute AudioParam reduction; // in Decibels > > Ditto here about ImplementedAs=legacyReduction, can we do without? > I do not see any change to our legacy web audio tests. Does that mean > reduction/legacyReduction is not covered?
ImplementedAs changes the name of our internal implementation function, it does NOT change the name exposed to the Web. This change is backward compatible as mentioned in the ChangeLog.
youenn fablet
Comment 4
2020-08-06 10:18:20 PDT
Comment on
attachment 406054
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=406054&action=review
>>> Source/WebCore/Modules/webaudio/WebKitAudioContext.idl:79 >>> + [MayThrowException, ImplementedAs=createWebKitDynamicsCompressor] WebKitDynamicsCompressorNode createDynamicsCompressor(); >> >> Do we need this ImplementedAs? >> IIUC, WebKitAudioContext is already the prefixed version so this might break existing code. >> Also I do not see any test coverage for createWebKitDynamicsCompressor also. > > There is a test here: > LayoutTests/webaudio/dynamicscompressor-basic.html: compressor = context.createDynamicsCompressor(); > > And it is still passing.
Oh my bad!
EWS
Comment 5
2020-08-06 10:33:44 PDT
Committed
r265336
: <
https://trac.webkit.org/changeset/265336
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 406054
[details]
.
Radar WebKit Bug Importer
Comment 6
2020-08-06 10:34:22 PDT
<
rdar://problem/66633893
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug