资源简介

C++ 语音通话 语音聊天 网络电话 注意,仅仅提供端对端的语音聊天

资源截图

代码片段和文件信息

#include “stdafx.h“
#include “AudioCode.h“
// Download by http://www.codefans.net
extern “C“ void va_g729a_init_encoder();
extern “C“ void va_g729a_encoder(short *speech unsigned char *bitstream);
extern “C“ void va_g729a_init_decoder();
extern “C“ void va_g729a_decoder(unsigned char *bitstream short *synth_short int bfi);
#define  L_frame_COMPRESSED 10
#define  L_frame            80

#pragma comment(lib“G729a“)

CAudioCode::CAudioCode()
{
va_g729a_init_encoder();
va_g729a_init_decoder();
}

CAudioCode::~CAudioCode()
{
}

BOOL CAudioCode::EncodeAudioData(char *pinint lenchar* poutint* 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*)pou

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1666  2009-04-07 22:16  codefans.net\Talk\TalkDll\AudioCode.cpp

     文件        742  2008-04-14 10:29  codefans.net\Talk\TalkDll\AudioCode.h

     文件       2598  2002-12-24 14:21  codefans.net\Talk\TalkDll\ClientSocket.cpp

     文件       1461  2002-12-24 11:39  codefans.net\Talk\TalkDll\ClientSocket.h

     文件    4195328  2008-04-14 19:52  codefans.net\Talk\TalkDll\Debug\TalkDll.bsc

     文件       2776  2008-04-13 18:35  codefans.net\Talk\TalkDll\Debug\TalkDll.exp

     文件       5474  2008-04-13 18:35  codefans.net\Talk\TalkDll\Debug\TalkDll.lib

     文件       1160  2008-04-13 18:35  codefans.net\Talk\TalkDll\Debug\TalkDll.res

     文件      96396  2001-10-15 19:34  codefans.net\Talk\TalkDll\G729a.lib

     文件        442  2002-12-23 17:13  codefans.net\Talk\TalkDll\head.h

     文件       4332  2009-04-07 22:16  codefans.net\Talk\TalkDll\Interface.cpp

     文件       1839  2008-04-14 14:22  codefans.net\Talk\TalkDll\Interface.h

     文件       1554  2002-12-24 13:52  codefans.net\Talk\TalkDll\ListenSocket.cpp

     文件       1480  2002-12-24 13:44  codefans.net\Talk\TalkDll\ListenSocket.h

     文件       7950  2002-12-20 17:49  codefans.net\Talk\TalkDll\MixIn.cpp

     文件       1624  2002-12-20 17:48  codefans.net\Talk\TalkDll\MixIn.h

     文件       6452  2002-12-20 17:49  codefans.net\Talk\TalkDll\MixOut.cpp

     文件       1464  2002-12-20 17:48  codefans.net\Talk\TalkDll\MixOut.h

     文件       1017  2002-12-24 10:13  codefans.net\Talk\TalkDll\MyWaveIn.cpp

     文件        793  2002-12-24 10:13  codefans.net\Talk\TalkDll\MyWaveIn.h

     文件       1685  2002-12-24 13:27  codefans.net\Talk\TalkDll\RecSocket.cpp

     文件       1428  2002-12-24 10:29  codefans.net\Talk\TalkDll\RecSocket.h

     文件        399  2002-12-20 17:50  codefans.net\Talk\TalkDll\res\TalkDll.rc2

     文件        418  2002-12-20 17:50  codefans.net\Talk\TalkDll\Resource.h

     文件       2278  2009-04-07 22:16  codefans.net\Talk\TalkDll\SendClient.cpp

     文件       1425  2002-12-25 10:55  codefans.net\Talk\TalkDll\SendClient.h

     文件       2850  2009-04-07 22:16  codefans.net\Talk\TalkDll\SortData.cpp

     文件       1742  2002-12-24 10:29  codefans.net\Talk\TalkDll\SortData.h

     文件        209  2002-12-20 17:50  codefans.net\Talk\TalkDll\StdAfx.cpp

     文件       1495  2002-12-20 17:50  codefans.net\Talk\TalkDll\StdAfx.h

............此处省略48个文件信息

评论

共有 条评论