You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I take a peek in the code, and I saw some methods in SoundAnalyser are created with Object.defineProperty function. I bypassed this error in my project just putting in a condition if Phaser.SoundAnalyser.prototype already exists in each of defineProperty, but I think that's not a good solution (I'm not an expert of JS, sorry xD).
Thanks for advance, oh, and thanks for this great plugin. :)
P.S. Also, I checked twice if I'm not re-adding the plugin in-the-fly more than once. It's just loaded at boot time.
The text was updated successfully, but these errors were encountered:
This is example code
After sound complete playing, I destroy it using:
this.viz.destroy();
When I creating it again, browser throws me this error (Tested in Chrome based browsers, Phaser 2.6.2 ):
Uncaught TypeError: Cannot redefine property: defineProperty fastFourierTransform"
I take a peek in the code, and I saw some methods in SoundAnalyser are created with Object.defineProperty function. I bypassed this error in my project just putting in a condition if Phaser.SoundAnalyser.prototype already exists in each of defineProperty, but I think that's not a good solution (I'm not an expert of JS, sorry xD).
Thanks for advance, oh, and thanks for this great plugin. :)
P.S. Also, I checked twice if I'm not re-adding the plugin in-the-fly more than once. It's just loaded at boot time.
The text was updated successfully, but these errors were encountered: