4 ms·
Technical question: You're using goto in a do/while loop here : https://github.com/nddrylliog/jsmad/blob/master/src/decoder.js#L86 https://github.com/nddryllio
by hieronymusN 15y ago
Technical question: You're using goto in a do/while loop here :
https://github.com/nddrylliog/jsmad/blob/master/src/decoder.js#L86 https://github.com/nddrylliog/jsmad/blob/master/src/decoder....
How are you pulling this off? I ask because while goto is a reserved word in JavaScript I didn't think it did anything.
- nddrylliog 15y agoGood question :) If you watch the resources/network tab under Chrome/Firebug you'll notice that decoder.js isn't used in the demo. It's my unfinished attempt to port libmad's decoder.c, so it still contains a bit of C code, I'm not even sure it's valid Javascript at this point :) In the demo, we're replicating some of its functionality in https://github.com/nddrylliog/jsmad/blob/master/src/player.js https://github.com/nddrylliog/jsmad/blob/master/src/player.j... instead, although in a less robust way.