Closed Bug 1164814 Opened 11 years ago Closed 10 years ago

AudioContext.currentTime is still increasing when suspended from the devtools

Categories

(Core :: Web Audio, defect, P3)

41 Branch
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: duanyao.ustc, Assigned: padenot)

References

Details

Attachments

(1 file)

Steps to reproduce: In devtool's console, run these codes: var ac = new AudioContext; ac.suspend(); // wait seconds ac.currentTime; //1 // wait seconds ac.currentTime; //2 Actual results: AudioContext.currentTime keeps increasing while the context is suspended. Expected results: AudioContext.currentTime should keep the same after suspend(). According to the spec, suspend() should "Suspends the progression of time in the audio context" (http://webaudio.github.io/web-audio-api/#widl-AudioContext-suspend-Promise-void). Chrome 42 does suspend the progression of currentTime.
A clarification: you must not run the 2 lines at once, or suspend() has no effect because AudioContext is initially suspended: var ac = new AudioContext; ac.suspend(); You should run the 2 lines one by one in the console.
This works as intended in web pages, but not in the console for some reason. See the attached test page.
Attached file testcase.html —
Assignee: nobody → padenot
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: AudioContext.currentTime is still increasing while the context is suspended → AudioContext.currentTime is still increasing when suspended from the devtools
See Also: → 1209598
Priority: -- → P3
Attachment #8610004 - Attachment mime type: text/plain → text/html
This has been fixed.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: