Fix typo's in wave file generator. Thanks @Arie!