Thursday, February 18, 2010
Buffering...
At the moment Awesome-WAV loads entire .wav files into memory before messing with the data. Since PCM WAV files can easily reach 50MB+ in size we have decided that we must implement some sort of file buffering for encoding / decoding data. We could just fread each individual byte, but that would add considerable overhead. Instead we will read / modify / save several large chunks of data at a time (1MB blocks maybe?). Right now we are just making structural changes to the code to make implementing buffering easier.