changed how sound files are produced. Is now writing correctly.