Question: The file from previous step doesn't matter, I need it to work with any WAV file entered. Write C/C++ program to read the file from

 The "file from previous step" doesn't matter, I need it to

The "file from previous step" doesn't matter, I need it to work with any WAV file entered.

Write C/C++ program to read the file from previous step and write modified WAV file. Program should process file sample by sample, and write the output at time t as out(t) = in(t) + 0.02*rn(t) 0.01*Amax where: in(t) is input from WAV file at time t, r(t) is random noise with maximum amplitude Amax ([O..Amax]). Please note that the processing may create overflow that you must compensate for. Measure the performance of the program (end-time start_time) with minimum resolution of 1 ms. The program must ask user for the WAV filename or read it from the command line. Write separate summary text file that outputs: filename, the sampling frequency, number of channels, number of bits per sample, record length in seconds calculated from the number of samples, maximum absolute value of the sample in input file, channel that has the maximum absolute value of the sample, and execution time of the program. Write C/C++ program to read the file from previous step and write modified WAV file. Program should process file sample by sample, and write the output at time t as out(t) = in(t) + 0.02*rn(t) 0.01*Amax where: in(t) is input from WAV file at time t, r(t) is random noise with maximum amplitude Amax ([O..Amax]). Please note that the processing may create overflow that you must compensate for. Measure the performance of the program (end-time start_time) with minimum resolution of 1 ms. The program must ask user for the WAV filename or read it from the command line. Write separate summary text file that outputs: filename, the sampling frequency, number of channels, number of bits per sample, record length in seconds calculated from the number of samples, maximum absolute value of the sample in input file, channel that has the maximum absolute value of the sample, and execution time of the program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!