Bug 82162 - Add maxNumberOfChannels interface to audioDestinationNode.
Summary: Add maxNumberOfChannels interface to audioDestinationNode.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Raymond
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-25 19:29 PDT by Raymond
Modified: 2013-09-05 08:32 PDT (History)
11 users (show)

See Also:


Attachments
Patch (12.28 KB, patch)
2012-03-25 19:31 PDT, Raymond
no flags Details | Formatted Diff | Diff
Patch (17.70 KB, patch)
2012-06-06 23:57 PDT, Raymond
no flags Details | Formatted Diff | Diff
Patch (18.16 KB, patch)
2012-06-07 00:49 PDT, Raymond
no flags Details | Formatted Diff | Diff
Patch (22.93 KB, patch)
2012-06-07 01:35 PDT, Raymond
no flags Details | Formatted Diff | Diff
Patch (23.48 KB, patch)
2012-06-07 02:08 PDT, Raymond
no flags Details | Formatted Diff | Diff
Patch (23.43 KB, patch)
2012-06-07 18:36 PDT, Raymond
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond 2012-03-25 19:29:20 PDT
Add maxNumberOfChannels interface to audioDestinationNode.
Comment 1 Raymond 2012-03-25 19:31:58 PDT
Created attachment 133719 [details]
Patch
Comment 2 WebKit Review Bot 2012-03-25 19:33:26 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 Raymond 2012-03-25 19:45:03 PDT
Hi Chris

According to what we have discussed before, I create this patch to add a maxNumberOfChannels interface to audioDestinationNode. Dummy implementation provided for mac and gstreamer destination. chromium destination will call into webkitPlatformSupport, which I will be glad to implement later in chromium code base if this patch looks good to you.

I don't touch the part for setting the destinationnode's channels number ( say, change numberOfChannels interface from readonly to read write). This part still need more investigation to find out how much impact it will bring to the current audio processing implementation. Any idea or guideline on this part?
Comment 4 Raymond 2012-04-04 23:27:56 PDT
Hi Chris

Any idea on this patch?
Comment 5 Raymond 2012-06-06 23:57:37 PDT
Created attachment 146212 [details]
Patch
Comment 6 Raymond 2012-06-07 00:05:04 PDT
Hi Chris

Patch updated for maxNumberOfChannels and numberOfChannels interface to audioDestinationNode.

Since the working solution involves changes to chromium code. In this patch it only provide default dummy implementation for them.

And also, change numberOfChannels on fly seems really hard to implement, so there is a limit in this patch that you can only change numberOfChannels right after the context is created ( thus not initialized yet, after initialize, a Dom exception will be thrown if user want to change the numberOfChannels)
Comment 7 Build Bot 2012-06-07 00:19:15 PDT
Comment on attachment 146212 [details]
Patch

Attachment 146212 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12913125
Comment 8 Raymond 2012-06-07 00:49:23 PDT
Created attachment 146222 [details]
Patch
Comment 9 Raymond 2012-06-07 00:50:13 PDT
update patch for warning on mac
Comment 10 Build Bot 2012-06-07 01:18:58 PDT
Comment on attachment 146222 [details]
Patch

Attachment 146222 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12922060
Comment 11 Raymond 2012-06-07 01:35:33 PDT
Created attachment 146228 [details]
Patch
Comment 12 Raymond 2012-06-07 01:39:14 PDT
oops, patch updated again for mac build.

hmm, does a webkit committer have the right to access try bot? really inconvenient and annoying to upload patch and verify build on other platform...

I have 20 patches landed now, any process to apply for committer role?
Comment 13 Raymond 2012-06-07 02:08:04 PDT
Created attachment 146235 [details]
Patch
Comment 14 WebKit Review Bot 2012-06-07 07:02:10 PDT
Comment on attachment 146235 [details]
Patch

Attachment 146235 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12908332
Comment 15 Raymond 2012-06-07 18:36:02 PDT
Created attachment 146443 [details]
Patch
Comment 16 Philippe Normand 2012-12-29 04:43:12 PST
Comment on attachment 146443 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=146443&action=review

> Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.cpp:96
> +    (void) numberOfChannels;
> +    (void) ec;

You can use the UNUSED_PARAM() macro.
Comment 17 Chris Rogers 2013-05-10 17:41:36 PDT
This patch is obsolete -- implemented here:
http://trac.webkit.org/changeset/144720
Comment 18 Zan Dobersek 2013-09-05 08:32:04 PDT
Comment on attachment 146443 [details]
Patch

The work on this bug has ceased, removing the r? flag on the patch.