///////////////////////////for mp3play program//////////////////////////
The directory in Mp3play contains all the necessary programs to play mp3 file on the NIOS board.
mp3play.c V the main body of the code, call function in mpegdec to do the header read process. 

//The following files are in /mgeglib
mpegdec.c V unpack header and get the information in file
mpeg3dec.c V do the decoding 
(In makefile, we can set to use only mpeg layer 3 or layer 1, 2, and 3)
mpegimdc.c V Inverse modified DCT function. contains both integer or floating operation
mpegsub.c V contains both integer or floating operation
Huff.c V Huffman table.

/////////////////////////for mp3encode program///////////////////////
The directory in mp3encode contains all the necessary programs to port the wav recorder and mp3 encoder to the NIOS board.
	main.c	-The main body of this program, it has the wav recorder from the ADC and it calls the 		function mp3encode()
              	mp3enocde.c	-the main body of mp3 encoding algorithm. It contains the mp3encode(). 
	The rest code files are called by mp3encode()

	The program saves the recording from MIC to a a wave file TEST_0.wav and equivalent mp3 file 	Mike_0.mp3
///////////////////////////////////////////////////////////////////////////////////// 
//////////////////////////////for both program/////////////////////////////
To make the program as a uClinux application
	1.add a line to user/Makefile , dir_$(CONFIG_USER_MP3ENCODE_MP3ENCODE) += mp3encode
	2.mkdir ~/uClinux-dist/user/mp3encode
	3.put hello.c in user/mp3encode dir,
	4.create Makefile in user/mp3encode dir,

To compile the uClinux images
	1. make vendor_hwselect SYSPTF=~/system_0.ptf          	// this tells the uclinux the system 							configuration
	2. make menuconfig                   1 1 2     // remember to add the the mp3encode as an application 					under miscellaneous application
	3. make				//it makes the images under the /uClinux/images/
	4. download the image to the board 
		nios2-configure-sof *.sof
   		nios2-download -g zImage --cable 1
   		nios2-terminal --cable 1 
