Sat Apr 26 2014 22:01:42

Asterisk developer's documentation


silk.h
Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 2011, Digium, Inc.
00005  *
00006  * David Vossel <dvossel@digium.com>
00007  *
00008  * See http://www.asterisk.org for more information about
00009  * the Asterisk project. Please do not directly contact
00010  * any of the maintainers of this project for assistance;
00011  * the project provides a web site, mailing lists and IRC
00012  * channels for your use.
00013  *
00014  * This program is free software, distributed under the terms of
00015  * the GNU General Public License Version 2. See the LICENSE file
00016  * at the top of the source tree.
00017  */
00018 
00019 /*!
00020  * \file
00021  * \brief SILK Format Attributes
00022  *
00023  * \author David Vossel <dvossel@digium.com>
00024  */
00025 #ifndef _AST_FORMAT_SILK_H_
00026 #define _AST_FORMAT_SILK_H_
00027 
00028 /*! SILK format attribute key value pairs, all are accessible through ast_format_get_value()*/
00029 enum silk_attr_keys {
00030    SILK_ATTR_KEY_SAMP_RATE, /*!< value is silk_attr_vals enum */
00031    SILK_ATTR_KEY_DTX, /*!< value is an int, 1 dtx is enabled, 0 dtx not enabled. */
00032    SILK_ATTR_KEY_FEC, /*!< value is an int, 1 encode with FEC, 0 do not use FEC. */
00033    SILK_ATTR_KEY_PACKETLOSS_PERCENTAGE, /*!< value is an int (0-100), Represents estimated packetloss in uplink direction.*/
00034    SILK_ATTR_KEY_MAX_BITRATE, /*!< value is an int */
00035 };
00036 
00037 enum silk_attr_vals {
00038    SILK_ATTR_VAL_SAMP_8KHZ = (1 << 0),
00039    SILK_ATTR_VAL_SAMP_12KHZ = (1 << 1),
00040    SILK_ATTR_VAL_SAMP_16KHZ = (1 << 2),
00041    SILK_ATTR_VAL_SAMP_24KHZ = (1 << 3),
00042 };
00043 
00044 #endif /* _AST_FORMAT_SILK_H */