search for: nnbbytes

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

Did you mean: nbbytes
2007 Dec 10
1
SpeexCodec run in linux of decode
...File = "out.spx"; fin = fopen(inFile, "r+b"); fout = fopen("out.pcm", "w+b"); if(fin == NULL || fout == NULL){ printf("FILE open error\n"); return 1; } while(1) { fread(&nbBytes, sizeof(int), 1, fin); #ifdef _DEBUG printf("\nnbBytes: %d\n",nbBytes); #endif if (feof(fin)) break; fread(cbits, 1, nbBytes, fin); speex_bits_read_from(&bits, cbits, nbBytes); speex_decode_int(state, &bits, out); fwrite(out, sizeof(short), m_frame_size, fout); } speex_encoder_destroy(state); speex_bits_destroy(&bits...