silk.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Asterisk -- An open source telephony toolkit.
  3. *
  4. * Copyright (C) 2011, Digium, Inc.
  5. *
  6. * David Vossel <dvossel@digium.com>
  7. *
  8. * See http://www.asterisk.org for more information about
  9. * the Asterisk project. Please do not directly contact
  10. * any of the maintainers of this project for assistance;
  11. * the project provides a web site, mailing lists and IRC
  12. * channels for your use.
  13. *
  14. * This program is free software, distributed under the terms of
  15. * the GNU General Public License Version 2. See the LICENSE file
  16. * at the top of the source tree.
  17. */
  18. /*!
  19. * \file
  20. * \brief SILK Format Attributes
  21. *
  22. * \author David Vossel <dvossel@digium.com>
  23. */
  24. #ifndef _AST_FORMAT_SILK_H_
  25. #define _AST_FORMAT_SILK_H_
  26. /*! SILK format attribute key value pairs, all are accessible through ast_format_get_value()*/
  27. enum silk_attr_keys {
  28. SILK_ATTR_KEY_SAMP_RATE, /*!< value is silk_attr_vals enum */
  29. SILK_ATTR_KEY_DTX, /*!< value is an int, 1 dtx is enabled, 0 dtx not enabled. */
  30. SILK_ATTR_KEY_FEC, /*!< value is an int, 1 encode with FEC, 0 do not use FEC. */
  31. SILK_ATTR_KEY_PACKETLOSS_PERCENTAGE, /*!< value is an int (0-100), Represents estimated packetloss in uplink direction.*/
  32. SILK_ATTR_KEY_MAX_BITRATE, /*!< value is an int */
  33. };
  34. enum silk_attr_vals {
  35. SILK_ATTR_VAL_SAMP_8KHZ = (1 << 0),
  36. SILK_ATTR_VAL_SAMP_12KHZ = (1 << 1),
  37. SILK_ATTR_VAL_SAMP_16KHZ = (1 << 2),
  38. SILK_ATTR_VAL_SAMP_24KHZ = (1 << 3),
  39. };
  40. #endif /* _AST_FORMAT_SILK_H */