Added utility to put wave file into buffer.