#include #include using namespace std; //ifstream::pos_type size; //char * memblock; char riff[4], id[5], fmt1[5]; long s, datasize, bitrate; short compressioncode, chan; char* filename = "sample2.wav"; char* mute(char* data){ data[0] = 0; data[1] = 0; data[2] = 0; data[3] = 0; return data; } void process (char* data, long datasize, short chan, char* fname, int si) { //useless test function, mutes data ifstream file (fname, ios::in|ios::binary); if (file.is_open()) { file.seekg (0, ios::beg); char header[si]; file.read(header,si); ofstream fileo; fileo.open("output.wav", ios::out | ios::app | ios::binary); if (fileo.is_open()) { cout << "file opened\n"<