www.pudn.com > IP_phone.rar > Compress.h


/**********************************************************/ 
/*类名:CCompress                                         */ 
/*简述:分装G.729压缩接口                                 */ 
/**********************************************************/ 
// Compress.h: interface for the CCompress class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_COMPRESS_H__B96C53E0_CB40_4B7A_A411_E189446B5D3B__INCLUDED_) 
#define AFX_COMPRESS_H__B96C53E0_CB40_4B7A_A411_E189446B5D3B__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
//压缩比:13:1 
#define SIZE_AUDIO_FRAME 960//原音频块大小 
#define SIZE_AUDIO_PACKED 60//压缩后的大小 
 
class CCompress   
{ 
public: 
	CCompress(); 
	virtual ~CCompress(); 
 
public: 
	//压缩 
	BOOL CompressAudioData(char *pin,int len,char* pout,int* lenr); 
	//解压 
	BOOL DeCompressAudioData(char *pin,int len,char* pout,int* lenr); 
 
}; 
 
#endif // !defined(AFX_COMPRESS_H__B96C53E0_CB40_4B7A_A411_E189446B5D3B__INCLUDED_)