wav: Only create wav header if there is output available.