Funnily enough, similar to cephdon, I am also looking to add MP3, but I thought I would get my RAW audio working first as it's much simpler. That said, the MP3 decoders I use are pretty much the same setup, but instead of sending the raw data via PWM to a speaker, you send the raw data to the IC, wait for it to say "I'm full" and stop, wait for it to say "I'm ready for more" and send more.
Anyway, you are right... the interpreter would take up a fair amount of from the general performance. I suppose I was kind of expecting magic, allowing me to convert all my low level C into easier to read/maintain JavaScript (wishful thinking!).
Anyway, if cephdon is working on getting Stream support, then I might just wait! That said, I would be quite keen on getting the Espruino code compiling on one of my dev boxes as well, so I can try contribute some C back, and not just a load of JavaScript libraries.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Funnily enough, similar to cephdon, I am also looking to add MP3, but I thought I would get my RAW audio working first as it's much simpler. That said, the MP3 decoders I use are pretty much the same setup, but instead of sending the raw data via PWM to a speaker, you send the raw data to the IC, wait for it to say "I'm full" and stop, wait for it to say "I'm ready for more" and send more.
Anyway, you are right... the interpreter would take up a fair amount of from the general performance. I suppose I was kind of expecting magic, allowing me to convert all my low level C into easier to read/maintain JavaScript (wishful thinking!).
Anyway, if cephdon is working on getting Stream support, then I might just wait! That said, I would be quite keen on getting the Espruino code compiling on one of my dev boxes as well, so I can try contribute some C back, and not just a load of JavaScript libraries.
Thanks for the replies chaps!