search for: totalbytesread

Displaying 1 result from an estimated 1 matches for "totalbytesread".

2004 Aug 06
1
About reducing noise..
...); tmp =1; speex_decoder_ctl(state, SPEEX_SET_ENH, &tmp); speex_bits_init(&bits); char temp[10]; long sizeToRead = 4; while(1) { int ret = ReadFile(file,temp, sizeToRead , &bytesRead,NULL); if( bytesRead == 0 ) { break; } nbBytes = atoi(temp); totalBytesRead += bytesRead; ret = ReadFile(file, cbits, nbBytes, &bytesRead, NULL); totalBytesRead += bytesRead; speex_bits_read_from(&bits, cbits, nbBytes); speex_decode(state, &bits, out); for( i=0; i <FRAME_SIZE; i++) buf[i] = (char)out[i]; // w...