Hot answers tagged

1 vote
Accepted

Lab 4 - header vs &header

It doesn't matter with arrays. The result will be the same either way. If header had been heap allocated instead, then adding a & would cause a stack corruption, as you'd be passing the address of ...
user avatar
1 vote
Accepted

unit16_t error while including library

Spelling error in the code. it should be uint8_t not unit8_t
user avatar
1 vote
Accepted

Lab 4 problems when the audio is clearly altered

According to the spec: Your program should then read the rest of the data from the WAV file, one 16-bit (2-byte) sample at a time. This program is reading (and writing!) two 2-byte samples at a time....
user avatar
1 vote
Accepted

Problems with Lab4

The issue is that you are reading your header in a loop. This action only needs to be done once, which is why the exact size of the header is provided. By reading it in a loop, you are reading through ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible