Closed Bug 927347 Opened 11 years ago Closed 11 years ago

[B2G] Oscillator node keep making sound on homescreen

Categories

(Core :: Web Audio, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 927322

People

(Reporter: pyang, Unassigned)

References

Details

Use device: buri/unagi
Prerequisite:
- Access http://zapion.github.io/webaudio/oscillator.html

STR:
1. Start oscillator node by play button
2. Press home key (oscillator page moved to background)

EXPECT:
- oscillator stops

ACTUAL:
- It keeps making sound.
There's no audio channels hooked up on that test page, right? If so, this is incorrect behavior on Firefox OS. By default, sound is supposed to only play in the foreground app by default when the test page has no audio channel types applied. Moving the app to the background should result in sound not playing with an app with no audio channel types applied.
Flags: needinfo?(pyang)
This might be fixed by bug 927322.
Depends on: 927322
Yeah, Paul (Yang), can you please try with the patch in that bug?
Webaudio support only audio-normal so it should be played foreground.

(In reply to Jason Smith [:jsmith] from comment #1)
> There's no audio channels hooked up on that test page, right? If so, this is
> incorrect behavior on Firefox OS. By default, sound is supposed to only play
> in the foreground app by default when the test page has no audio channel
> types applied. Moving the app to the background should result in sound not
> playing with an app with no audio channel types applied.
Flags: needinfo?(pyang)
Sounds like this should block then - that means audio channel integration isn't working correctly for the normal channel with web content.
blocking-b2g: --- → koi?
Paul (Yang) - Have you had a chance to try this test with the patch from bug 927322? (See Comment 3 and Comment 4.)  Thanks.
Flags: needinfo?(pyang)
Thanks for Jw's help, the patch from bug 927322 can solve.
Flags: needinfo?(pyang)
(In reply to Paul Yang [: pyang] from comment #7)
> Thanks for Jw's help, the patch from bug 927322 can solve.

Thanks!  Marking this as a dupe then.  I landed the patch on that bug on inbound just now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
blocking-b2g: koi? → ---
You need to log in before you can comment on or make changes to this bug.