关于g723.1语音编解码问题?

caoliyong 2003-03-19 10:29:15
有那位仁兄有这方面的源代码能否给小弟提供,给小弟讲解讲解。我有一个g723.1的源代码,可是看不懂有那位高手能帮忙。感激不尽。
...全文
130 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhuang094 2003-08-16
  • 打赏
  • 举报
回复
我身边的同事就做这个的,你方便的话可以发来看看。
zhuang094@sohu.com
tstony987 2003-07-31
  • 打赏
  • 举报
回复
也给我发一份mysoft987@sohu.com
hualiu14 2003-05-21
  • 打赏
  • 举报
回复
代码发过来看看 ,谢谢!hualiu14@163.com
taianmonkey 2003-05-16
  • 打赏
  • 举报
回复
代码发给我看看!
cong119@sohu.com
taianmonkey 2003-05-16
  • 打赏
  • 举报
回复
//压缩音频帧
BOOL CCodecMgr::EncodeAudioData(char *pin,int len,char * pout,int* lenr)
{
BOOL bRet=FALSE;
if(!pin||len!=SIZE_AUDIO_FRAME||!pout)
goto RET;

va_g729a_encoder((short*)pin,(BYTE*)pout);
va_g729a_encoder((short*)(pin+160),(BYTE*)pout+10);
va_g729a_encoder((short*)(pin+320),(BYTE*)pout+20);
va_g729a_encoder((short*)(pin+480),(BYTE*)pout+30);
va_g729a_encoder((short*)(pin+640),(BYTE*)pout+40);
va_g729a_encoder((short*)(pin+800),(BYTE*)pout+50);

//FOR DEBUG
//pout = pin;

if(lenr)
*lenr=SIZE_AUDIO_PACKED;

bRet=TRUE;
RET:
return bRet;
}
//解压缩音频帧
BOOL CCodecMgr::DecodeAudioData(char *pin,int len,char * pout,int* lenr)
{

BOOL bRet=FALSE;
if(!pin||len!=SIZE_AUDIO_PACKED||!pout)
goto RET;

va_g729a_decoder((BYTE*)pin,(short*)(pout),0);
va_g729a_decoder((BYTE*)pin+10,(short*)(pout+160),0);
va_g729a_decoder((BYTE*)pin+20,(short*)(pout+320),0);
va_g729a_decoder((BYTE*)pin+30,(short*)(pout+480),0);
va_g729a_decoder((BYTE*)pin+40,(short*)(pout+640),0);
va_g729a_decoder((BYTE*)pin+50,(short*)(pout+800),0);

if(lenr)
*lenr=SIZE_AUDIO_FRAME;

bRet=TRUE;
RET:
return bRet;
}
hualiu14 2003-05-16
  • 打赏
  • 举报
回复
gz
caoliyong 2003-04-11
  • 打赏
  • 举报
回复
高手呢
Kevin_qing 2003-03-20
  • 打赏
  • 举报
回复
gz

2,643

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧