Thanks Randy, I will file a bug to fix the current implementation. On Tue, Nov 25, 2014 at 1:59 PM, Randy Lin <[email protected]> wrote: > Hi Tim. > That may cause power consumption problem on b2g device. > You can refer to this bug:1079810. > > ------------------------------------- > -rlin > > ----- 原始郵件 ----- > 寄件者: "Tim Chien" <[email protected]> > 收件者: [email protected] > 寄件備份: 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 > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g
-- Tim Guan-tin Chien, Engineering Manager and Front-end Lead, Firefox OS, Mozilla Corp. (Taiwan) _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
