Closed
Bug 914016
Opened 12 years ago
Closed 12 years ago
AudioBufferSourceNode and OscillatorNode don't dispatch ended event when OfflineAudioContext completes soon after source end
Categories
(Core :: Web Audio, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: karlt, Assigned: karlt)
References
Details
(Keywords: regression)
Attachments
(3 files)
410 bytes,
text/html
|
Details | |
356 bytes,
text/html
|
Details | |
2.77 KB,
patch
|
padenot
:
review+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
See attached testcase.
Expected results:
ended
complete
Actual results:
complete
Assignee | ||
Updated•12 years ago
|
Attachment #801360 -
Attachment is patch: false
Attachment #801360 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Depends on: 918212
Summary: AudioBufferSourceNode doesn't dispatch ended event when OfflineAudioContext completes soon after source end → AudioBufferSourceNode and OscillatorNode don't dispatch ended event when OfflineAudioContext completes soon after source end
Comment 2•12 years ago
|
||
Hi Karl, I have STR for oscillator node doesn't stop when moving to background but for b2g.
Is that related to this bug?
Use device: buri/unagi
STR:
1. Start oscillator node
2. Press home key (oscillator page moved to background)
EXPECT:
- oscillator stops
ACTUAL:
- It keeps making sound.
Flags: needinfo?(karlt)
Assignee | ||
Comment 3•12 years ago
|
||
That's a different issue, thanks Paul. Please file separately.
Flags: needinfo?(karlt)
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 4•12 years ago
|
||
This is not enough to fix offline-oscillator-ended-2.html because OscillatorNodeEngine doesn't set aFinished until the block after it finishes, but I'll file another bug for that.
This is what I want for bug 923301.
Attachment #820788 -
Flags: review?(paul)
Comment 5•12 years ago
|
||
Comment on attachment 820788 [details] [diff] [review]
always dispatch main thread updates after non-realtime graph finishes
Review of attachment 820788 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/test/crashtests/offline-buffer-source-ended-1.html
@@ +9,5 @@
> +var source = context.createBufferSource();
> +source.buffer = context.createBuffer(1, 12000, context.sampleRate);
> +source.onended = function(e) {
> + document.documentElement.removeAttribute("class");
> + dump("ended\n");
Remove this.
Attachment #820788 -
Flags: review?(paul) → review+
Assignee | ||
Updated•12 years ago
|
Flags: in-testsuite+
Assignee | ||
Comment 6•12 years ago
|
||
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Assignee | ||
Comment 8•12 years ago
|
||
Comment on attachment 820788 [details] [diff] [review]
always dispatch main thread updates after non-realtime graph finishes
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Web Audio
User impact if declined: Bug 923301 and so bug 898291 depend on this fix.
Testing completed (on m-c, etc.): on m-c Aurora, in testsuite.
Risk to taking this patch (and alternatives if risky):
very low. small change to remove over-optimizing.
String or IDL/UUID changes made by this patch: none.
Attachment #820788 -
Flags: approval-mozilla-beta?
Updated•12 years ago
|
Attachment #820788 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 9•12 years ago
|
||
status-firefox26:
--- → fixed
status-firefox27:
--- → fixed
Comment 10•12 years ago
|
||
status-b2g-v1.2:
--- → fixed
Assignee | ||
Comment 12•12 years ago
|
||
The testcase that is now fixed here is running in the automated testsuite, so no manual testing is required thanks. Bug 930257 covers what is not fixed here.
FWIW running the testcases manually requires browser.dom.window.dump.enabled set to true for terminal output.
Flags: needinfo?(karlt)
Comment 13•12 years ago
|
||
(In reply to Karl Tomlinson (:karlt) from comment #12)
> The testcase that is now fixed here is running in the automated testsuite,
> so no manual testing is required thanks. Bug 930257 covers what is not
> fixed here.
> FWIW running the testcases manually requires browser.dom.window.dump.enabled
> set to true for terminal output.
Verified as fixed on Firefox 26 beta 7 (Build ID: 20131122094025) and latest Aurora (build ID: 20131124105503): after browser.dom.window.dump.enabled is set to true, "complete" and "ended" are shown in the terminal for the first attachment, although not for the second attachment as mentioned in comment 4 (bug 930257).
You need to log in
before you can comment on or make changes to this bug.
Description
•