Displaying 5 results from an estimated 5 matches for "outbufpo".
Did you mean:
outbufpos
2011 Dec 22
2
Decoding only a certain frame results in different values than when decoding the entire file
...//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) && (inBufpos !=...
2011 Dec 23
0
Decoding only a certain frame results in different values than when decoding the entire file
...> //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++;
>...
2011 Dec 23
2
Decoding only a certain frame results in different values than when decoding the entire file
...est);
>>
>> //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[in...
2011 Dec 21
3
Decoding only a certain frame results in different values than when decoding the entire file
...rhaps wrongly) doing?
int __stdcall SpxDecode(unsigned char* DinBuf, float* DoutBuf, unsigned
int Dinlen)
{
//char *testFile;
//FILE *ftest;
//testFile = "test2";
//ftest = fopen(testFile, "wb");
//fwrite(inBuf,1,inlen,ftest);
//fwrite(outBuf, 1, outBufpos, ftest);
//fclose(ftest);
//take every 62 bytes
//decode, then write to outbuf
char cbits[MAX_FRAME_BYTES];
float output[MAX_FRAME_SIZE];
short out[MAX_FRAME_SIZE];
unsigned int i,j;
unsigned char* tout; tout = (unsigned char*)&out;
for (i=0; i&...
2011 Dec 22
0
Decoding only a certain frame results in different values than when decoding the entire file
...SpxDecode(unsigned char* DinBuf, float* DoutBuf, unsigned
> int Dinlen)
> {
>
> //char *testFile;
> //FILE *ftest;
> //testFile = "test2";
> //ftest = fopen(testFile, "wb");
> //fwrite(inBuf,1,inlen,ftest);
> //fwrite(outBuf, 1, outBufpos, ftest);
> //fclose(ftest);
>
> //take every 62 bytes
> //decode, then write to outbuf
>
> char cbits[MAX_FRAME_BYTES];
> float output[MAX_FRAME_SIZE];
> short out[MAX_FRAME_SIZE];
> unsigned int i,j;
>
> unsigned char* tout; tout =...