use cleanup attribute
pass wave filename as the first argument