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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 24.06.2019 08:50
Write a program that will compute the volume of ice cream served in a cone. as you can see in the diagram below, the ice cream is served as a hemisphere of frozen deliciousness on top of a cone, which is also packed with frozen deliciousness. thus, the total volume of ice cream sold is the volume of the hemisphere plus the volume of the cone. the example shows an ice cream cone in which the hemisphere and cone have a radius of 10 inches and the cone has a height of 15 inches. your program must instead prompt for these two values, which are taken from the keyboard as integers: • the hemisphere/cone radius in inches, and
Answers: 3
question
Computers and Technology, 24.06.2019 10:30
This device directs network traffic. bridge hub nic repeater router switch
Answers: 3
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
question
Mathematics, 27.04.2021 19:40
question
History, 27.04.2021 19:40
question
Mathematics, 27.04.2021 19:40
question
Mathematics, 27.04.2021 19:40
question
Mathematics, 27.04.2021 19:40
Questions on the website: 13722360