I'm trying to read WAV files, specifically to read the data values and turn them into decimal values. I've managed to navigate past all the header material and I can find the byte where the sample data starts. However, I'm not too up on binary operations in PERL. Can anyone give me some pointers on how to read the two bytes that make up a sample in a 16-bit (mono) wav file and turn them into a decimal value? It's stored as a two's-complement signed integer, low byte first.
I did find a module called Audio::Wav that seemingly would take care of all this, but I can't find the module anywhere with PPM.