Displaying 2 results from an estimated 2 matches for "spxdecod".
Did you mean:
spxdecode
2011 Dec 21
3
Decoding only a certain frame results in different values than when decoding the entire file
...o get the encoded values
-9323
-732
189
2329
I hope I could explain it well.
Am I missing something here?
Thank you very much.
Hermann
Hi Lakhdar,
I am not sure if I do anything wrong with the dec state memory.
Could you perhaps take a look at what I am (perhaps 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);...
2011 Dec 22
0
Decoding only a certain frame results in different values than when decoding the entire file
...e trying to do.
Let me try to describe what I understood (I assumed your byte array starts
@ 1 and not 0 as it is supposed to be in C) :
##############################
CASE 1: (output is good)
##############################
- INITILIAZE_DECODER (reset state memory)
- READ bytes 1 to 124
- SpxDecode(DinBuf, DoutBuf, unsigned int Dinlen)
- DECODE bytes 1 to 62
---OUTPUT Frame 1----
-293
-8234
2134
17
- DECODE bytes 63 to 124
---OUTPUT Frame 2----
-9323
-732
189
2329
###############...