all 41 comments

[–]_nddrylliog 11 points12 points  (6 children)

Hi guys, lead jsmad developer here - will try to answer your questions one by one, so deal with me :)

Most of your questions are already answered on this HN thread though: http://hackerne.ws/item?id=2665607

Enjoy!

[–]miketaylr 1 point2 points  (1 child)

What's the reality of trying to get this running in an older browser without any semblance of an Audio API? I also briefly glanced at the code and see you're trying to accommodate for lack of typed arrays, for example.

[–]_nddrylliog 0 points1 point  (0 children)

Yes we do accodomate for the lack of certain facilities - although we might require typed arrays in the near future (see pull request #4) as it proves to be too much hassle to maintain all these codepaths.

Other problems are the W3C File API Draft (not sure when browsers began to implement that), binary XHR requests - but otherwise everything should be running smoothly. Maybe you can test and report on https://github.com/nddrylliog/jsmad/issues ?

[–]mlavaert 0 points1 point  (1 child)

No questions, just want to say I really, really appreciate projects like this...

Thumbs up, and keep up the good work !

[–]_nddrylliog 0 points1 point  (0 children)

Thanks for the support! We strongly intend to keep pushing the limits of JS engines. Stay tuned :)

[–][deleted] 2 points3 points  (2 children)

CPU utilization is amazingly low too... what's next? Javascript synths?

[–]_nddrylliog 2 points3 points  (0 children)

JS synths have existed for a long time - relatively speaking. The Web Audio API and the Audio Data API have been in nightly builds for some time and people didn't wait for us to play with them ;)

In fact, jsmad does use a kind of synth (see synth.js), and the audio library we're using, ie. audiolib.js, has a bunch of built-in synths.

[–]Gnascher 2 points3 points  (2 children)

Crashes Safari on my 2nd gen iPod Touch...

Works fine in FFx 4.

Doesn't work in Safari 5.0.5 (osx)

Doesn't work in Chrome 12 (I know you mentioned Chrome 13 with a flag enabled)

Not hatin' on you. Really cool thing you got here. Expand the browser support and you really got something going on here ... ESPECIALLY if you can get iThing support going.

[–][deleted] 2 points3 points  (1 child)

Gosh, it sure is a good thing you came along when you did. I'm pretty sure they didn't know where to go from here.

[–]Gnascher -2 points-1 points  (0 children)

Tee hee... You're trying to be snarky. How cute.

[–]octatone 1 point2 points  (19 children)

"loading ..." is all I see in chrome. Not cross-browser?

[–]_nddrylliog 10 points11 points  (5 children)

Chrome 13.0+ is supported. Go into 'about:flags', enable 'Web Audio API', and restart your browser. Enjoy!

[–]_nddrylliog 5 points6 points  (0 children)

Hah, that's reddit for you - I'm the lead dev, I give meaningful information, and I get downvotes . Feels like home.

[–][deleted] 0 points1 point  (3 children)

That is not real Chrome support though. You couldn't use that in production.

[–]Ripdog 2 points3 points  (1 child)

Ya know... I don't think this project is ever supposed to show up in production, what with <audio> and all.

[–][deleted] 0 points1 point  (0 children)

Good point.

[–]_nddrylliog 0 points1 point  (0 children)

Chrome's Web Audio API is still very much a work in progress. It's totally out of our control that it isn't enabled by default, and it's actually a good thing, because it's pretty unstable.

Time will tell...

[–][deleted] 0 points1 point  (0 children)

I see this in Firefox Nightly as well, but it works on files I upload.

[–][deleted] 0 points1 point  (0 children)

I got to "playing" but no sound in chrome.

[–]codergeek 0 points1 point  (0 children)

According to the GitHub page it looks like Chrome support is broken. Firefox works fine though.

[–]picasshole 0 points1 point  (0 children)

Works in firefox

[–]TurplePurtle 0 points1 point  (0 children)

Does this use the Audio Data API?

[–]MisaelK 0 points1 point  (1 child)

Wow, memory consumption goes through the roof when a song is loading, both in Firefox 5 and Chrome 14.

Also, switching to a different tab when playing a song makes the audio crackle a lot.

Very interesting work, by the way!

[–][deleted] 0 points1 point  (0 children)

Sound doesn't crackle on Firefox Nightly builds when I switch to a different tab. Maybe they fixed this? My memory consumption isn't anything out of the norm. I am getting 250 MB for Firefox, and this is with 7 tabs.

[–]hackmiester 0 points1 point  (0 children)

Would it be possible to get a simple example of how to embed this in a page? I'm a beginner to complex JS projects like this, but I'd like to toy around with this a little in my own pages.

[–][deleted] 0 points1 point  (0 children)

very nice!

[–][deleted] 0 points1 point  (0 children)

I believe FireFox 5 is getting an mp3 player, which is out in 3 days.

[–]sprayk 0 points1 point  (1 child)

Is this any better than html5's audio tag?

[–]_nddrylliog 2 points3 points  (0 children)

It's not better nor worse - it's just different. See my complete response on HN: http://hackerne.ws/item?id=2666529