blinkenrocket / webedit-react

Blinkenrocket Web-Interface to Build Texts and Animations
http://blinkenrocket.de
MIT License
7 stars 5 forks source link

Hardware Context maximum bound issue #12

Closed muzy closed 6 years ago

muzy commented 6 years ago

When transmitting multiple times (tested on OSX with Chrome) the number of hardware context reaches the maximum.

Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6) is greater than or equal to the maximum bound (6). at n (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:1076018) at o (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:1075410) at r.confirmTransfer (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:1070189) at Object.l (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:513386) at Object.invokeGuardedCallback (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:577183) at Object.invokeGuardedCallbackAndCatchFirstError (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:577300) at h (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:514311) at v (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:514779) at b (http://blinkenrocket.de/webedit-react/app-b4f49def83a066e35244.js?b4f49def83a066e35244:1:514936) at Array.forEach ()

klues commented 6 years ago

can be closed after https://github.com/blinkenrocket/webedit-react/issues/22 is closed (i.e. https://github.com/blinkenrocket/webedit-react/pull/23 is merged). Changed the code there so that the audioContext is only initialized once.