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, 21.06.2019 16:30
Which type of computing device is best suited to having a digital pen as an input device? a. personal computer b. personal digital assistant c. smart television d. laptop e. mobile phone
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
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
question
Chemistry, 02.07.2019 12:30
Questions on the website: 13722361