subject
Computers and Technology, 03.04.2020 22:14 AM28

Call a subroutine to prompt the user for a path/filename for an existing mono WAV file (you will use ts9_mono. wav to debug your program). Read this path/filename from the keyboard as a string, and store it in a 1-D 200 char array. Step 2) Check that the file extension (the 3-4 letters past the last period in the path/filename) is WAV or wav. If not, notify the user of his/her error, and re-prompt the user for a path/filename (i. e. call the subroutine in 1.) Here, you can see that you should be doing steps 1,2 (and 3) inside a loop that is exited when the conditions are met. Step 3) When the user has entered a WAV path/filename, open the file as "r+b" (read and write binary – this doesn’t create a file if it doesn’t exist; it doesn’t destroy the contents of the file upon opening if the file does exist). Check the file pointer to see if it is NULL. If so, notify the user, and re-prompt (i. e. call the subroutine in 1.) starting the process over. Step 4) If the WAV file is successfully opened, use fseek( ) to go to the correct location in the file and use fread( ) to read the following from the header: Audioformat, NumChannels BitsPerSample Subchunk2Size For example, NumChannels

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:40, penelopymorales24
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
image
Computers and Technology, 22.06.2019 22:10, Metlife
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
image
Computers and Technology, 23.06.2019 01:50, akornegay2
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, maddietomlinson113
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
You know the right answer?
Call a subroutine to prompt the user for a path/filename for an existing mono WAV file (you will use...

Questions in other subjects:

Konu
Mathematics, 23.04.2020 21:04