search for: inbufpo

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

Did you mean: inbufpos
2011 Dec 22
2
Decoding only a certain frame results in different values than when decoding the entire file
..."test"; //ftest = fopen(testFile, "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) &...
2011 Dec 23
0
Decoding only a certain frame results in different values than when decoding the entire file
..."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]; > inBufpo...
2011 Dec 23
2
Decoding only a certain frame results in different values than when decoding the entire file
...(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 >> in...
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