search for: recordedsampl

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

Did you mean: recordedsamples
2012 Oct 16
0
Opus, a little confusing !
I wrote an opus test program to encode and decode the record data at a sequence like that: ......record something to data(variable)............... for ( i=0; i<data.maxFrameIndex; i+=480) { encoded = opus_encode(en,&data.recordedSamples[i],480,buf,4096); printf("encoded:%d\n",encoded); decoded = opus_decode(de,buf,encoded,&data2.recordedSamples[i],480,0); printf("decoded:%d\n",decoded); data2.maxFrameIndex += decoded; } ........play the decoded samples in data2(variable).................. I can hear my...