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 voice, but just the first part of it,and the last is mising, while it works well without the codec progress, i'm confused and had no idea,anyone can give me some advice please, Thanks a lot! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20121017/b944a283/attachment.htm