This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17392 - Default value for bufferSize in createScriptProcessor()
Summary: Default value for bufferSize in createScriptProcessor()
Status: CLOSED WONTFIX
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: Chris Rogers
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 12:12 UTC by Michael[tm] Smith
Modified: 2014-10-28 17:16 UTC (History)
3 users (show)

See Also:


Attachments

Description Michael[tm] Smith 2012-06-05 12:12:16 UTC
Audio-ISSUE-14 (quinnirill): Default value for bufferSize in createJavaScriptNode() [Web Audio API]

http://www.w3.org/2011/audio/track/issues/14

Raised by: Jussi Kalliokoski
On product: Web Audio API

Jussi Kalliokoski suggested that the first argument of AudioContext:createJavasScriptNode, (buffer size) would be made optional.

In addition, it could be specified so that an advanced implementation would adjust the default value to be an optimal balance between reliability (avoiding glitches and underruns) and latency on that system and setup.
Comment 1 Olivier Thereaux 2012-06-07 15:49:16 UTC
Comment from Jussi in http://lists.w3.org/Archives/Public/public-audio/2012AprJun/0106.html

«
We discussed with Chris (off-list) the recent change from numberOfOutputs
to numberOfChannels in the createJavaScriptNode(), because I noticed my
sink.js was broken in the latest Chrome Canary.

I suggested that the first parameter (bufferSize) be optional as well,
reverting to default when passed undefined. In an advanced implementation,
this default could be adjusted to a value that the implementation deems a
good tradeoff between safety (avoiding underruns) and latency on that
system and setup. I believe Chris thinks this is a good idea, so he
suggested I bring this to discussion in the group so we can change the spec
if we agree on it.
»
Comment 2 Olivier Thereaux 2013-07-26 15:01:48 UTC
The method is currently defined as:

ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0 …

Is this issue still valid or is has it been fixed already?
Comment 3 Olivier Thereaux 2013-07-26 15:02:27 UTC
Updating issue title to reflect the change of name from JavaScriptAudioNode to
ScriptProcessorNode, and in particular the createScriptProcessor method.
Comment 4 Ehsan Akhgari [:ehsan] 2013-07-26 19:10:11 UTC
I think it's safe to call this fixed.
Comment 5 Olivier Thereaux 2014-10-28 17:13:29 UTC
Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues
Comment 6 Olivier Thereaux 2014-10-28 17:16:25 UTC
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.