// 
//  Project: Experiment 1.6.4 File IO - Chapter 1 
//  File name: fileIO.h   
//
//  Description: This is the header file for experiment 1.6.4 fileIO
//
//  For the book "Real Time Digital Signal Processing: 
//                Implementation and Application, 2nd Ed"
//                By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
//                Publisher: John Wiley and Sons, Ltd
//
//  Tools used: CCS v.2.12.07
//              TMS320VC5510 DSK Rev-C
//

// This wav file header is pre-calculated. 
// It can only be used for this experiment.
short wavHeader[44]={
0x52, 0x49, 0x46, 0x46,  // RIFF
0x2E, 0x8D, 0x01, 0x00,  // 101678 (36 bytes + 101642 bytes data)
0x57, 0x41, 0x56, 0x45,  // WAVE
0x66, 0x6D, 0x74, 0x20,  // FORMATTED 
0x10, 0x00, 0x00, 0x00,  // PCM audio
0x01, 0x00, 0x01, 0x00,  // Linear PCM, 1-channel
0x40, 0x1F, 0x00, 0x00,  // 8kHz sampling
0x80, 0x3E, 0x00, 0x00,  // Byte rate = 16000
0x02, 0x00, 0x10, 0x00,  // Block align = 2, 16-bit/sample
0x64, 0x61, 0x74, 0x61,  // Bata
0x0A, 0x8D, 0x01, 0x00}; // 101642 data bytes



