Question: Write code to read a WAV file. You will need the following set of definitions: a WAV file begins with a 44-byte header, in unsigned
Write code to read a WAV file. You will need the following set of definitions: a WAV file begins with a 44-byte header, in unsigned byte format. Some important parameter information is coded as follows: 4. Write a program to add fade in and fade-out effects to sound clips (in WAV format). Specifications for the fades are as follows: The algorithm assumes a linear envelope; the fade-in duration is from 0 to 20 % of the data samples; the fade-out duration is from 80 to 100 % of the data samples. If you like, you can make your code able to handle both mono and stereo WAV files. If necessary, impose a limit on the size of the input file, say 16 mb.
Byte[22 23] Number of channels Byte[24 27] Sampling rate Byte[34 35] Sampling bits Byte[40 43] Data length
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
