WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
45009
Add AudioDestinationNode files
https://bugs.webkit.org/show_bug.cgi?id=45009
Summary
Add AudioDestinationNode files
Chris Rogers
Reported
2010-08-31 17:13:08 PDT
Add AudioDestinationNode files
Attachments
Patch
(10.29 KB, patch)
2010-08-31 17:14 PDT
,
Chris Rogers
no flags
Details
Formatted Diff
Diff
Patch
(10.40 KB, patch)
2010-09-22 12:25 PDT
,
Chris Rogers
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Rogers
Comment 1
2010-08-31 17:14:43 PDT
Created
attachment 66145
[details]
Patch
Chris Rogers
Comment 2
2010-08-31 17:16:03 PDT
Implements AudioDestinationNode as described in the web audio specification:
http://chromium.googlecode.com/svn/trunk/samples/audio/specification/specification.html#AudioDestinationNode-section
Kenneth Russell
Comment 3
2010-09-09 14:42:05 PDT
Comment on
attachment 66145
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=66145&action=prettypatch
Generally looks fine; r- because of an inconsistency in the publicly visible attributes. Also a couple of minor suggestions.
> WebCore/webaudio/AudioDestinationNode.cpp:50 > + initialize();
I certainly hope that AudioNode initializes the m_isInitialized flag to false in its constructor. It would be simpler if AudioNode were landed before this class which depends on it.
> WebCore/webaudio/AudioDestinationNode.cpp:71 > + m_isInitialized = true;
I would suggest just calling AudioNode::initialize() here and making m_isInitialized private in AudioNode (assuming that's where it's declared).
> WebCore/webaudio/AudioDestinationNode.cpp:81 > + m_isInitialized = false;
Same comment, but about calling AudioNode::uninitialize().
> WebCore/webaudio/AudioDestinationNode.idl:34 > + readonly attribute short numberOfChannels;
This attribute isn't currently in the Web Audio spec.
Chris Rogers
Comment 4
2010-09-22 12:25:01 PDT
Created
attachment 68416
[details]
Patch
Chris Rogers
Comment 5
2010-09-22 12:27:33 PDT
Ken, I've created a new patch to address some changes to AudioContext. I've added the "numberOfChannels" attribute to the web audio specification document. I spoke with you offline about keeping the initialize/uninitialize part as it is. But I *did* add addInput() and addOutput() methods to AudioNode.
Kenneth Russell
Comment 6
2010-09-28 10:06:50 PDT
Comment on
attachment 68416
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=68416&action=review
Looks fine. Tiny formatting issue.
> WebCore/webaudio/AudioDestinationNode.h:54 > + virtual void reset() { m_currentTime = 0.0; };
No semicolons at end of lines.
WebKit Commit Bot
Comment 7
2010-09-28 10:55:32 PDT
Comment on
attachment 68416
[details]
Patch Clearing flags on attachment: 68416 Committed
r68540
: <
http://trac.webkit.org/changeset/68540
>
WebKit Commit Bot
Comment 8
2010-09-28 10:55:38 PDT
All reviewed patches have been landed. Closing bug.
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