Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions