Audio file is corrupted after decoding

[email protected] Wed, 14 Mar 2012 12:07:59 -0400
Newsgroups gmane.comp.audio.compression.speex.devel
Message-ID <[email protected]>
I have gone through speex-manual but couldn't solve this issue.
Everything is working perfect when i tried it with speexenc and speexdec
using command line.

Please help me out.