smspillaz / fmv

Floor Music Visualiser
GNU Lesser General Public License v2.1
3 stars 0 forks source link

Emscripten version not working #1

Open mosra opened 8 years ago

mosra commented 8 years ago

I was not able to make the project do anything in any of my browsers (Opera/Chrome/Firefox on Linux), Upon loading http://smspillaz.github.io/fmv in Firefox 44 it starts eating whole processor core and dragging wav/mp3 there doesn't do anything. This is printed in the console:

uncaught exception: SimulateInfiniteLoop TypeError: context.createJavaScriptNode is not a function

Chrome, on the other hand, prints this:

Uncaught SimulateInfiniteLoop Loader.js:82 Uncaught TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.

Thanks :)

LB-- commented 8 years ago

It loads for me on Chrome 48 and I see a visualizer grid slowly moving up and down, but when I try to drag music on, all that happens is that the tutorial text at the bottom left disappears.

smspillaz commented 8 years ago

Thanks for the feedback!

I'm not sure what's causing the TypeError on chrome - I'll have to look into it. Maybe its a bug in Chrome?

As for createJavaScriptNode not being a function - I have to admit - I shamelessly hacked together a pre-made solution for implementing AnalyzerNode from stack overflow (since this project was really just meant to be a fun demo). I note that its now deprecated and everything in the API has been renamed. I'll try and clean it all up and make it work on modern browsers when I get a chance. Thanks for trying it out and offering to feature it! I'll make sure to drop a line here when I'm done with the bug fixing necessary to make it all work.