News for hackers. Stuff that matters.
Re:Dancer.js - A high-level audio API with sweet visualizations by city41 on Sunday July 08, 2012 @09:56AM (#4214560)
I'm curious how he was able to synchronize to the audio. I have found with at least Chrome on OSX, the audio tag's callbacks have a varying delay with the audio. Seems to be at the OS level and beyond Chrome's control. The delay mostly goes away the second time through, as if whatever's actually playing the mp3 is cached and primed.
Re:Dancer.js - A high-level audio API with sweet visualizations by jsantell on Sunday July 08, 2012 @10:45AM (#4214661)
In Chrome, the Web Audio API is used -- not using an audio tag. As each chunk of the buffer comes in to be played and decoded, it's processed for spectrum and waveform data: https://github.com/jsantell/dancer.js/blob/master/src/adapte...