Little modification inside save_to_wav function in Sound struct