5 ms·
Show HN: Online SID-Player with spectrum viewer
- mfincham 13y agoThis is lovely. It seems to bug out in Firefox 25 when I switch away from the tab it's on - any debugging info that would be useful?
- chengsun 13y agoThis is probably because Firefox (and Chrome) clamps the setTimeout interval of background tabs to 1 second to improve performance.
- mfincham 13y agoHuh? Is that new? Can I turn it off?
- chengsun 13y agoIt was introduced in Firefox 5 [1]. You can change it in about:config by tweaking "dom.min_background_timeout_value" to a lower value (in milliseconds). [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=633421 https://bugzilla.mozilla.org/show_bug.cgi?id=633421
- crandles 13y agoI believe window.requestAnimationFrame is preferred over setInterval, and doesn't get limited as such. https://developer.mozilla.org/en-US/docs/Web/API/window.requestAnimationFrame https://developer.mozilla.org/en-US/docs/Web/API/window.requ...
- lewispollard 13y agoActually requestAnimationFrame is limited more (possibly even entirely paused) as it assumes that if the tab isn't visible, no animation needs to be requested
- s-macke 13y agoSorry, but this is an issue of the browsers.
- benjamincburns 13y agoSounds like childhood :-)
- chengsun 13y agoAlso check out this JavaScript Amiga MOD player by gasman: http://jsspeccy.zxdemo.org/jsmodplayer/ http://jsspeccy.zxdemo.org/jsmodplayer/
- s-macke 13y agoHe should update it to work with Firefox. Since Firefox 25 they have changed to Web Audio.
- egypturnash 13y agoThis is awesome. Ring modulation and samples seem to be missing? I've been humming Hubbard's theme to "Nemesis the Warlock" this past week so I pulled that up and its ominous drones were just... off. I also decided to try Crowther's theme to "Zig Zag" to see how it would cope with the torture test of a play routine running more than once a frame; that got pretty mutilated too. But when it works, it's pretty damn awesome!
- s-macke 13y agoThanks. Yes, some features are indeed missing. But most of the tunes are working fine. I am thinking to emscript reSID or something.
- tech-no-logical 13y agowould probably be awesome (love SID tunes), but I get noting in latest firefox beta, nothing in latest chrome, nothing in latest opera, and nothing in internet explorer 11. my guess there's something wrong.
- s-macke 13y agoIt works under Firefox 25 and Chrome. Should also work with Firefox 23 and 24. The others I have not tested. But some of them lack audio support. And I would not try Firefox beta. They have changed the audio API and probably fixing bugs right now. I had problems to get it running under Firefox 25 after they implemented the web audio API.
- s-macke 13y agoA lot of songs are not working. Try only the button "Slightly Random Choice.sid" They all work.
- tech-no-logical 13y agothat was it. the rest of the menu gives me nothing, the random button works fine :) great stuff.
- bane 13y agoWorks fin-ish in Chrome Version 31.0.1650.48 m. but if I put it into background tab it sounds like a broken record.