⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 g711codec.h

📁 MiniSip Client with DomainKeys Authentication, Sip, Audio communications, Echo Cancel
💻 H
字号:
/* Copyright (C) 2004-2006 the Minisip Team  This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.  You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA *//* Copyright (C) 2004  * * Authors: Erik Eliasson <eliasson@it.kth.se> *          Johan Bilien <jobi@via.ecp.fr>*/#ifndef G711CODEC_H#define G711CODEC_H#include<libminisip/libminisip_config.h>#include<libminisip/codecs/Codec.h>class G711CodecState : public CodecState{	public:		/**		* @returns Number of bytes in output buffer		*/		virtual uint32_t encode(void *in_buf, int32_t in_buf_size, void *out_buf);		/**		*		* @returns Number of frames in output buffer		*/		virtual uint32_t decode(void *in_buf, int32_t in_buf_size, void *out_buf);};class G711Codec : public AudioCodec{	public:		virtual MRef<CodecState *> newInstance();				G711Codec( MRef<Library *> lib );		virtual ~G711Codec();			/**		 * @return Requested sampling freq for the CODEC		 */		virtual int32_t getSamplingFreq();		/**		 * Time in milliseconds to put in each frame/packet. This is 20ms for the G711 codec.		 */		virtual int32_t getSamplingSizeMs();		/**		 * size of the output of the codec in bytes. This is 160.		 *///		virtual int32_t getEncodedNrBytes();				virtual int32_t getInputNrSamples();				virtual std::string getCodecName();				virtual std::string getCodecDescription();		virtual uint8_t getSdpMediaType();		virtual std::string getSdpMediaAttributes();				virtual std::string getMemObjectType(){return "G711Codec";}						virtual uint32_t getVersion()const;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -