edited wave.c to make it fucking work
made it work