From: Kent T. <th...@in...> - 2003-11-05 01:33:19
|
I have added g.729codec in audio_encode.c(iaxLibrary) for decode part = like below after get the library and header files from ITU but when i = try to call my friend i cant heard his voice but only a very noisy = sound. Is the any way improved the source here in order to get a true voice = speaking. Thankq =20 =20 =20 =20 =20 int decode_audio(struct iaxc_call *call, void *out, void *data, int len, = int iEncodeType) { int ret; int datalen; if(len =3D=3D 0) { fprintf(stderr, "Empty voice frame\n"); return -1; } switch (iEncodeType) { case AST_FORMAT_GSM: ........ ... break; =20 case AST_FORMAT_G729A: =20 va_g729a_init_decoder(); va_g729a_decoder(data,out ,0); =20 return 80; break; } return -1; } =20 |