Added a method AudioFormatWriter::flush, and implemented it in the WAV format.