Code: #include #include #include #include #include #include struct wavdata {unsigned int soundlength, frequency; char *sample; }; struct RIFF { long wave; long fmt; unsigned int BitRes; long data[40]; long datasize[40]; long channels; long samplerate; } header; char fp[25]; char data1[100]; fp =fopen("cwave1.wav", "rb"); if(fp ==NULL) { printf("unable to open to wave file\n"); return(0); } fread( data1,sizeof data1,1,fp); } if(header.RIFF != 0x46464952) ...