Hi Tim. 
That may cause power consumption problem on b2g device. 
You can refer to this bug:1079810.

-------------------------------------
-rlin

----- 原始郵件 -----
寄件者: "Tim Chien" <timdr...@mozilla.com>
收件者: dev-b2g@lists.mozilla.org
寄件備份: 2014 11 月 24 星期一 下午 9:49:36
主旨: [b2g] Is there any side effect holding a long lived AudioContext?

Hi,

I didn't find any documentation so that I figured I should ask. So in
bug 1103574 I changed the Keyboard app so that it would start using
Web Audio API instead of multiple <audio> to play that clicker sound,
but doing so I would hold an AudioContext instance (and two
AudioBuffer instances) whenever the clicker sound is enabled (even
when keyboard is not visible). Does that poses any side effect on B2G
or in general?

Also, there are posts online saying AudioNodes are only GC'd when they
are disconnect()'d, I doubt that is the case (since the node is not
reachable from the context) but it seems to me there are no obvious
way to confirm that. Should I always disconnect the node after calling
start(0)? What's the definite way to find out questions like this?

Thanks,

-- 
Tim Guan-tin Chien, Engineering Manager and Front-end Lead, Firefox
OS, Mozilla Corp. (Taiwan)
_______________________________________________
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to