Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need description of latency expectation in AudioProcessEvent #85

Closed
olivierthereaux opened this issue Sep 11, 2013 · 3 comments
Closed
Assignees
Labels
Needs Edits Decision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/
Milestone

Comments

@olivierthereaux
Copy link
Contributor

Originally reported on W3C Bugzilla ISSUE-17350 Tue, 05 Jun 2012 11:41:13 GMT
Reported by Philip Jägenstedt
Assigned to

Audio-ISSUE-59 (AudioProcessingEventScheduling): AudioProcessingEvent scheduling [Web Audio API]

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

Raised by: Philip Jägenstedt
On product: Web Audio API

How close to AudioContext.currentTime is AudioProcessingEvent.playbackTime expected to be when the audioprocess event is fired?

May a compliant implementation fire events arbitrarily far ahead of time in an arbitrary order? Presumably Web authors will make assumptions that the event is fired as close as possible to "now", so the spec should require this.

@joeberkovitz
Copy link
Contributor

This question applies to AudioWorker also. I believe that a non-normative statement needs to be supplied in the spec which states that a UA's design goal of minimizing latency will also minimize the currentTime-playbackTime. However, there can never be any assumption that a compliant implementation won't fire events ahead of time due to the countervailing goal of also preventing buffer underrun.

@cwilso cwilso changed the title (AudioProcessingEventScheduling): AudioProcessingEvent scheduling Need description of latency expectation in AudioProcessEvent Oct 23, 2014
@cwilso
Copy link
Contributor

cwilso commented Oct 23, 2014

A better general description of what "currentTime" means in the context might be a great idea, too (i.e. currentTime updates unevenly, as the audio thread processes.)

@cwilso cwilso added Needs Edits Decision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/ and removed V1 (TPAC 2014) labels Oct 30, 2014
@cwilso cwilso added this to the Web Audio Last Call 1 milestone Oct 30, 2014
@joeberkovitz joeberkovitz self-assigned this Oct 13, 2015
@joeberkovitz
Copy link
Contributor

Please see #625 (comment) for a relevant question on the definition of currentTime and its interaction with suspend/resume. Respond in the PR please.

rtoy added a commit that referenced this issue Nov 13, 2015
Fix #85 by clarifying AudioContext.currentTime and various events' pl…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Edits Decision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/
Projects
None yet
Development

No branches or pull requests

4 participants