Generates raw WAV output by hooking malloc() and read().