亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tonegen.h

?? 基于sip協議的網絡電話源碼
?? H
字號:
/* $Id: tonegen.h 974 2007-02-19 01:13:53Z bennylp $ *//*  * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  */#ifndef __PJMEDIA_TONEGEN_PORT_H__#define __PJMEDIA_TONEGEN_PORT_H__/** * @file tonegen.h * @brief Tone (sine, MF, DTMF) generator media port. */#include <pjmedia/port.h>/** * @defgroup PJMEDIA_MF_DTMF_TONE_GENERATOR Tone (sine, MF, DTMF) Generator * @ingroup PJMEDIA_PORT * @brief Tone (sine, MF, DTMF) Generator * @{ * This page describes tone generator media port. A tone generator can be * used to generate a single frequency sine wave or dual frequency tones * such as DTMF. * * The tone generator media port provides two functions to generate tones. * The function #pjmedia_tonegen_play() can be used to generate arbitrary * single or dual frequency tone, and #pjmedia_tonegen_play_digits() is * used to play digits such as DTMF. Each tone specified in the playback * function has individual on and off signal duration that must be * specified by application. * * In order to play digits such as DTMF, the tone generator is equipped * with digit map, which contain information about the frequencies of * the digits. The default digit map is DTMF (0-9,a-d,*,#), but application * may specifiy different digit map to the tone generator by calling * #pjmedia_tonegen_set_digit_map() function. */PJ_BEGIN_DECL/** * This structure describes individual MF digits to be played * with #pjmedia_tonegen_play(). */typedef struct pjmedia_tone_desc{    short   freq1;	    /**< First frequency.			    */    short   freq2;	    /**< Optional second frequency.		    */    short   on_msec;	    /**< Playback ON duration, in miliseconds.	    */    short   off_msec;	    /**< Playback OFF duration, ini miliseconds.    */    short   volume;	    /**< Volume (1-16383), or 0 for default.	    */} pjmedia_tone_desc;/** * This structure describes individual MF digits to be played * with #pjmedia_tonegen_play_digits(). */typedef struct pjmedia_tone_digit{    char    digit;	    /**< The ASCI identification for the digit.	    */    short   on_msec;	    /**< Playback ON duration, in miliseconds.	    */    short   off_msec;	    /**< Playback OFF duration, ini miliseconds.    */    short   volume;	    /**< Volume (1-16383), or 0 for default.	    */} pjmedia_tone_digit;/** * This structure describes the digit map which is used by the tone generator * to produce tones from an ASCII digits. * Digit map used by a particular tone generator can be retrieved/set with * #pjmedia_tonegen_get_digit_map() and #pjmedia_tonegen_set_digit_map(). */typedef struct pjmedia_tone_digit_map{    unsigned count;	    /**< Number of digits in the map.		*/    struct {	char    digit;	    /**< The ASCI identification for the digit.	*/	short   freq1;	    /**< First frequency.			*/	short   freq2;	    /**< Optional second frequency.		*/    } digits[16];	    /**< Array of digits in the digit map.	*/} pjmedia_tone_digit_map;/** * Tone generator options. */enum{    /**     * Play the tones in loop, restarting playing the first tone after     * the last tone has been played.     */    PJMEDIA_TONEGEN_LOOP    = 1};/** * Create an instance of tone generator with the specified parameters. * When the tone generator is first created, it will be loaded with the * default digit map. * * @param pool		    Pool to allocate memory for the port structure. * @param clock_rate	    Sampling rate. * @param channel_count	    Number of channels. Currently only mono and stereo *			    are supported. * @param samples_per_frame Number of samples per frame. * @param bits_per_sample   Number of bits per sample. This version of PJMEDIA *			    only supports 16bit per sample. * @param options	    Option flags. Application may specify  *			    PJMEDIA_TONEGEN_LOOP to play the tone in a loop. * @param p_port	    Pointer to receive the port instance. * * @return		    PJ_SUCCESS on success, or the appropriate *			    error code. */PJ_DECL(pj_status_t) pjmedia_tonegen_create(pj_pool_t *pool,					    unsigned clock_rate,					    unsigned channel_count,					    unsigned samples_per_frame,					    unsigned bits_per_sample,					    unsigned options,					    pjmedia_port **p_port);/** * Create an instance of tone generator with the specified parameters. * When the tone generator is first created, it will be loaded with the * default digit map. * * @param pool		    Pool to allocate memory for the port structure. * @param name		    Optional name for the tone generator. * @param clock_rate	    Sampling rate. * @param channel_count	    Number of channels. Currently only mono and stereo *			    are supported. * @param samples_per_frame Number of samples per frame. * @param bits_per_sample   Number of bits per sample. This version of PJMEDIA *			    only supports 16bit per sample. * @param options	    Option flags. Application may specify  *			    PJMEDIA_TONEGEN_LOOP to play the tone in a loop. * @param p_port	    Pointer to receive the port instance. * * @return		    PJ_SUCCESS on success, or the appropriate *			    error code. */PJ_DECL(pj_status_t) pjmedia_tonegen_create2(pj_pool_t *pool,					     const pj_str_t *name,					     unsigned clock_rate,					     unsigned channel_count,					     unsigned samples_per_frame,					     unsigned bits_per_sample,					     unsigned options,					     pjmedia_port **p_port);/** * Check if the tone generator is still busy producing some tones. * * @param tonegen	    The tone generator instance. * * @return		    Non-zero if busy. */PJ_DECL(pj_bool_t) pjmedia_tonegen_is_busy(pjmedia_port *tonegen);/** * Instruct the tone generator to stop current processing. * * @param tonegen	    The tone generator instance. * * @return		    PJ_SUCCESS on success. */PJ_DECL(pj_status_t) pjmedia_tonegen_stop(pjmedia_port *tonegen);/** * Instruct the tone generator to play single or dual frequency tones  * with the specified duration. The new tones will be appended to currently * playing tones, unless #pjmedia_tonegen_stop() is called before calling * this function. The playback will begin as soon as  the first get_frame() * is called to the generator. * * @param tonegen	    The tone generator instance. * @param count		    The number of tones in the array. * @param tones		    Array of tones to be played. * @param options	    Option flags. Application may specify  *			    PJMEDIA_TONEGEN_LOOP to play the tone in a loop. * * @return		    PJ_SUCCESS on success, or PJ_ETOOMANY if *			    there are too many digits in the queue. */PJ_DECL(pj_status_t) pjmedia_tonegen_play(pjmedia_port *tonegen,					  unsigned count,					  const pjmedia_tone_desc tones[],					  unsigned options);/** * Instruct the tone generator to play multiple MF digits with each of * the digits having individual ON/OFF duration. Each of the digit in the * digit array must have the corresponding descriptor in the digit map. * The new tones will be appended to currently playing tones, unless  * #pjmedia_tonegen_stop() is called before calling this function.  * The playback will begin as soon as the first get_frame() is called  * to the generator. * * @param tonegen	    The tone generator instance. * @param count		    Number of digits in the array. * @param digits	    Array of MF digits. * @param options	    Option flags. Application may specify  *			    PJMEDIA_TONEGEN_LOOP to play the tone in a loop. * * @return		    PJ_SUCCESS on success, or PJ_ETOOMANY if *			    there are too many digits in the queue, or *			    PJMEDIA_RTP_EINDTMF if invalid digit is *			    specified. */PJ_DECL(pj_status_t) pjmedia_tonegen_play_digits(pjmedia_port *tonegen,						 unsigned count,						 const pjmedia_tone_digit digits[],						 unsigned options);/** * Get the digit-map currently used by this tone generator. * * @param tonegen	    The tone generator instance. * @param m		    On output, it will be filled with the pointer to *			    the digitmap currently used by the tone generator. * * @return		    PJ_SUCCESS on success. */PJ_DECL(pj_status_t) pjmedia_tonegen_get_digit_map(pjmedia_port *tonegen,						   const pjmedia_tone_digit_map **m);/** * Set digit map to be used by the tone generator. * * @param tonegen	    The tone generator instance. * @param m		    Digitmap to be used by the tone generator. * * @return		    PJ_SUCCESS on success. */PJ_DECL(pj_status_t) pjmedia_tonegen_set_digit_map(pjmedia_port *tonegen,						   pjmedia_tone_digit_map *m);PJ_END_DECL/** * @} */#endif	/* __PJMEDIA_TONEGEN_PORT_H__ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合天天天天做夜夜夜夜做| 色一区在线观看| 国产精品久久久久久妇女6080| 欧美性淫爽ww久久久久无| 国内精品国产三级国产a久久 | 五月天中文字幕一区二区| 欧美一级日韩免费不卡| 成人aa视频在线观看| 久久精品72免费观看| 亚洲欧美国产三级| 国产农村妇女毛片精品久久麻豆 | 日韩视频在线永久播放| 色婷婷综合在线| 国产高清无密码一区二区三区| 丝袜亚洲另类丝袜在线| 国产精品久久久久影院老司| 精品成人一区二区三区| 欧美人与z0zoxxxx视频| 91亚洲精品久久久蜜桃网站| 国产精品99久久久久久久女警| 琪琪久久久久日韩精品| 亚洲高清久久久| 亚洲欧美韩国综合色| 国产精品亲子伦对白| 久久久久国色av免费看影院| 欧美va亚洲va香蕉在线| 日韩亚洲欧美高清| 欧美精品在线一区二区三区| 在线观看国产日韩| 91精品福利视频| 99国产精品久久久| 99国产精品视频免费观看| 成人黄页毛片网站| 高清不卡在线观看av| 国产成人免费9x9x人网站视频| 国内久久婷婷综合| 国内精品嫩模私拍在线| 国产乱一区二区| 国产一区二区福利| 国产精品正在播放| 成人手机在线视频| 色婷婷av久久久久久久| 91在线视频播放| 色综合天天综合网天天看片| 91网站在线观看视频| 色爱区综合激月婷婷| 欧美唯美清纯偷拍| 欧美日本在线播放| 69堂成人精品免费视频| 91精品国产麻豆国产自产在线| 91精品国产高清一区二区三区蜜臀| 69堂亚洲精品首页| 亚洲精品在线观看网站| 国产亚洲成年网址在线观看| 国产精品久久久久一区二区三区 | 欧美大胆人体bbbb| 日韩精品中午字幕| 久久久午夜精品| 国产精品视频观看| 亚洲欧美电影院| 亚洲一区在线视频观看| 亚洲国产日韩一级| 日本美女视频一区二区| 精品无码三级在线观看视频| 成人综合在线网站| 色域天天综合网| 欧美日韩国产一二三| 日韩美女主播在线视频一区二区三区| 精品国产伦一区二区三区观看体验| 久久综合九色综合欧美亚洲| 中文字幕第一区综合| 一区二区三区四区精品在线视频| 天堂资源在线中文精品| 麻豆91在线播放| 成人美女在线视频| 欧美亚洲免费在线一区| 精品久久国产字幕高潮| 国产精品久久久久久久久晋中 | 亚洲成人综合网站| 久久国产精品99精品国产| 成人av免费在线| 欧美日高清视频| 久久精品人人做人人综合| 亚洲激情六月丁香| 久久91精品国产91久久小草| 97久久精品人人爽人人爽蜜臀| 欧美日韩精品一区二区| 欧美国产欧美综合| 香蕉久久夜色精品国产使用方法| 国产成人超碰人人澡人人澡| 欧美日韩1区2区| 国产精品传媒视频| 久久99日本精品| 91国模大尺度私拍在线视频 | 亚洲欧美成aⅴ人在线观看| 久久爱另类一区二区小说| 色婷婷综合在线| 久久久久久久久久美女| 亚洲超碰97人人做人人爱| 成人小视频在线| 精品国产一区a| 亚洲h动漫在线| caoporm超碰国产精品| 日韩欧美黄色影院| 一区二区三区精品在线| 国产宾馆实践打屁股91| 日韩一区二区三区视频在线 | 亚洲国产sm捆绑调教视频 | 色老汉av一区二区三区| 国产亚洲欧美激情| 青青草成人在线观看| 欧美伊人精品成人久久综合97| 国产精品欧美久久久久一区二区| 久久99精品国产麻豆不卡| 欧美视频一二三区| 亚洲精品视频自拍| 不卡视频一二三| 中文字幕国产精品一区二区| 国内外成人在线| 精品国产欧美一区二区| 麻豆精品一区二区av白丝在线| 欧美日韩国产综合视频在线观看| 成人免费视频在线观看| 丰满放荡岳乱妇91ww| 久久久久久久久久久久久夜| 韩日精品视频一区| 欧美电视剧在线观看完整版| 天天操天天色综合| 欧美疯狂性受xxxxx喷水图片| 亚洲一区二区三区中文字幕在线| 色综合咪咪久久| 亚洲欧美日韩中文字幕一区二区三区 | 久久av老司机精品网站导航| 日韩欧美的一区二区| 日韩精彩视频在线观看| 欧美日韩亚洲高清一区二区| 性做久久久久久| 56国语精品自产拍在线观看| 五月激情综合婷婷| 日韩欧美你懂的| 麻豆久久一区二区| 精品国产乱码久久| 国产精品中文字幕欧美| 国产欧美日韩精品在线| 成人看片黄a免费看在线| 国产精品三级在线观看| 成人av集中营| 亚洲激情六月丁香| 欧美色偷偷大香| 天天爽夜夜爽夜夜爽精品视频| 91精品国产综合久久福利| 免费人成在线不卡| 欧美不卡一二三| 国产精品系列在线播放| 中文字幕中文字幕中文字幕亚洲无线| www.亚洲激情.com| 亚洲一区二区三区影院| 欧美一区二区三区免费在线看| 免费av网站大全久久| 久久久久久久久免费| 97久久超碰国产精品| 天堂成人免费av电影一区| 精品久久一区二区三区| 成人午夜视频在线观看| 亚洲一二三区在线观看| 日韩欧美一级在线播放| 国产成人亚洲综合a∨猫咪| 综合电影一区二区三区 | 精品精品欲导航| 成人免费毛片片v| 夜夜精品视频一区二区| 日韩免费在线观看| www.欧美亚洲| 日韩在线一区二区三区| 国产亚洲va综合人人澡精品| 在线观看亚洲精品| 精品写真视频在线观看| |精品福利一区二区三区| 欧美久久久一区| 粉嫩欧美一区二区三区高清影视| 亚洲综合激情另类小说区| 精品久久久久香蕉网| 色噜噜狠狠色综合中国| 久久99蜜桃精品| 玉足女爽爽91| 久久久蜜桃精品| 欧美精品123区| 成+人+亚洲+综合天堂| 日本不卡免费在线视频| 中文字幕av一区二区三区高 | 国产精品久久久久一区| 91精品国产入口在线| 97成人超碰视| 精一区二区三区| 一区二区三区中文在线| 久久精品一区四区| 欧美一区二区精美| 91电影在线观看| 成人av影院在线| 国产一区二区三区四|