Changed audio read/write to wav read/write