rt...@chromium.org,hong...@chromium.org http://webaudio.github.io/web-audio-api/ An AudioContext can be explicitly closed, thereby releasing any hardware resources associated with the AudioContext. A new method, close(), is added to allow users to close the context. Currently, users have no way of shutting down an AudioContext except by destroying the graph and waiting for GC to collect the AudioContext. This means that the audio hardware is still consuming power and CPU for no reason, which is important for battery life on mobile devices. By adding a new close() method, users can now explicitly destroy the context, saving CPU and power. This has been a common request from developers who want to save power and cpu, or intend to create and destroy many audio contexts as part of their application. (WebAudio has a hard-limit of a few active AudioContexts.) Users do not have to use this, and contexts will get collected (or not) as before. None Yes http://crbug.com/439241 https://www.chromestatus.com/features/5411681005993984 Yes
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
rt...@chromium.org,hong...@chromium.org http://webaudio.github.io/web-audio-api/ An AudioContext can be explicitly closed, thereby releasing any hardware resources associated with the AudioContext. A new method, close(), is added to allow users to close the context. Currently, users have no way of shutting down an AudioContext except by destroying the graph and waiting for GC to collect the AudioContext. This means that the audio hardware is still consuming power and CPU for no reason, which is important for battery life on mobile devices. By adding a new close() method, users can now explicitly destroy the context, saving CPU and power. This has been a common request from developers who want to save power and cpu, or intend to create and destroy many audio contexts as part of their application. (WebAudio has a hard-limit of a few active AudioContexts.) Users do not have to use this, and contexts will get collected (or not) as before. None Yes http://crbug.com/439241 https://www.chromestatus.com/features/5411681005993984 Yes
Hi,Seems reasonable. Is there evidence of support for this change from other browser vendors?
This seems reasonable (+1 to explicit control), but I have a question about the design:Suggests that an exception will be thrown if this method is called on an OfflineAudioContext; why is the Error not sent to the reject handler instead?