Question: Question 3 : Sound Effects [ 3 0 marks ] Many different effects can be used to transform audio. You are required to implement a

Question 3: Sound Effects [30 marks]
Many different effects can be used to transform audio. You are required to implement a simple reversing algorithm. Write a MIPS program, called question3.asm, that will read in a WAVE file, and will then reverse the audio data in the file, and output this to a new file. You will need to
obtain, from the user, the full input file name (the entire path), the full output file name (the entire path) and the file size (in bytes). You may assume that all audio files inputted will only have 1 channel and will have a bit depth of 16.
Note: for this question, the Automarker will not check your console output (and there should not be console output, only input). It will only check your output file. When it prints your output file, it will convert your binary file to a textual hexadecimal form.
Sample Console Input:
/home/lynn/Documents/CSC2002S/assign1/q3_t1_in.wav
/home/lynn/Documents/CSC2002S/assign1/q3_t1_out.wav
64
Sample File Input (represented as text using xxd):
00000000: 52494646 f004020057415645666d 7420
00000010: 10000000010001002256000044 ac 0000
00000020: 0200100064617461 cc 04020000000100
00000030: 02000300040005000600070008000900
Sample File Output (represented as text using xxd):
00000000: 52494646 f004020057415645666d 7420
00000010: 10000000010001002256000044 ac 0000
00000020: 0200100064617461 cc 04020009000800
00000030: 07000600050004000300020001000000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!