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 17391 - ScriptProcessorNode Delays
Summary: ScriptProcessorNode Delays
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: This bug has no owner yet - up for the taking
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 12:11 UTC by Michael[tm] Smith
Modified: 2014-10-28 17:16 UTC (History)
2 users (show)

See Also:


Attachments

Description Michael[tm] Smith 2012-06-05 12:11:30 UTC
Audio-ISSUE-13 (jsnode-delay): JavaScriptNode Delays [Web Audio API]

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

Raised by: Matthew Paradis
On product: Web Audio API

As raised in http://lists.w3.org/Archives/Public/public-audio/2012AprJun/0096.html

“We have noticed that a difference between the use of the JSNode and native nodes is an introduction of a delay equal to the block size of the node. While this is not a problem for a linear graph which has no dependance on the phase accuracy of audio channels, it does cause a problem when phase is an issue.”
Comment 1 Olivier Thereaux 2012-06-07 15:47:14 UTC
Comment from Chris Rogers, 9 May 2012:
«
For synthesis of "notes" using custom DSP in a JavaScriptAudioNode, I believe the .playbackTime attribute is sufficient for synchronization:
https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioProcessingEvent

In the more general case of processing with effects (not synthesis), we should probably expose a .latency attribute on AudioNode so that appropriate compensation can be done in the use cases where it needs to be done.

Mailing list post with quite a bit of detail about latency and compensation strategies:
http://lists.w3.org/Archives/Public/public-audio/2012AprJun/0066.html
»
Comment 2 Olivier Thereaux 2013-07-26 14:52:38 UTC
Changed title of the issue to reflect renaming of JavaScriptAudioNode to ScriptProcessorNode.
Comment 3 Olivier Thereaux 2014-10-28 17:13:35 UTC
Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues
Comment 4 Olivier Thereaux 2014-10-28 17:16:31 UTC
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.