search for: sinbuf

Displaying 4 results from an estimated 4 matches for "sinbuf".

Did you mean: inbuf
2011 Dec 22
2
Decoding only a certain frame results in different values than when decoding the entire file
...ile, "wb"); //fwrite(inBuf,1,inlen,ftest); //take every 320 bytes //copy every short to float array, and make sure to put null in unused area float input[MAX_FRAME_SIZE]; char cbits[MAX_FRAME_BYTES]; unsigned int inBufpos = 0, j, outBufpos = 0; short *sinBuf; sinBuf = (short*) inBuf; do { j = 0; do { //copy to float array input[j] = sinBuf[inBufpos]; inBufpos++; j++; } while ((inBufpos % 160 != 0) && (inBufpos != (inlen/2))); /...
2011 Dec 23
0
Decoding only a certain frame results in different values than when decoding the entire file
...n,ftest); > > //take every 320 bytes > //copy every short to float array, and make sure to put null in > unused area > > float input[MAX_FRAME_SIZE]; > char cbits[MAX_FRAME_BYTES]; > unsigned int inBufpos = 0, j, outBufpos = 0; > short *sinBuf; > > sinBuf = (short*) inBuf; > > do > { > j = 0; > do > { > //copy to float array > input[j] = sinBuf[inBufpos]; > inBufpos++; j++; > } > whi...
2011 Dec 23
2
Decoding only a certain frame results in different values than when decoding the entire file
...every 320 bytes >> //copy every short to float array, and make sure to put null in >> unused area >> >> float input[MAX_FRAME_SIZE]; >> char cbits[MAX_FRAME_BYTES]; >> unsigned int inBufpos = 0, j, outBufpos = 0; >> short *sinBuf; >> >> sinBuf = (short*) inBuf; >> >> do >> { >> j = 0; >> do >> { >> //copy to float array >> input[j] = sinBuf[inBufpos]; >> inB...
2011 Dec 21
3
Decoding only a certain frame results in different values than when decoding the entire file
Sorry, it seems I have only replied to Lakhdar, not to the newsgroup. Below is my reply to Lakhdar, and I would like to make it more clear now, using some pseudo values for simplicity: I read bytes 1 to 124 from my encoded spx file. I decode themt and get the values: ---Frame 1---- -293 -8234 2134 17 ---Frame 2---- -9323 -732 189 2329 Both frames are just perfect as I need them. But now when I