Question
In C/C++ (Please comment through the code) Create a 15 second .wav file. Write C/C++ program to read the created file and write modified WAV
In C/C++ (Please comment through the code)
Create a 15 second .wav file.
Write C/C++ program to read the created file and write modified WAV file. The program should process file sample by sample, write the average of current and previous sample, and add sine wave with amplitude equal to one quarter of the maximum amplitude of the signal and frequency of 1,600 Hz. Please note that addition of the noise signal may create overflow that you must compensate for. Measure the performance of the program (end-time start_time).
Write another 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, and execution time of the program.
Please show all files, commented.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started