brief update

AudioEngine.cpp: there was a logic error in the switch statement for sample formats (decimal vs. hex)

basics.js: writes to a file rather than the network, but appears to be functioning (although i've only tested in 32-bit mode).

ps: the trick on the mac, at least, is to run soundflower - a program that defines an output device that you can read from - so you make soundflower your output device and then you can read from it with port audio.

without soundflower, it isn't possible on a mac to get the system output as an input feed.

i don't know what the equivalent program is on linux or windows, but there's probably something along those lines.