Update wav.cpp