* wav.c : big clean up and use ninput.h