gsm.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
  3. * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. */
  19. #ifndef __PJMEDIA_CODEC_GSM_H__
  20. #define __PJMEDIA_CODEC_GSM_H__
  21. /**
  22. * @file pjmedia-codec/gsm.h
  23. * @brief GSM 06.10 codec.
  24. */
  25. #include <pjmedia-codec/types.h>
  26. /**
  27. * @defgroup PJMED_GSM GSM 06.10 Codec
  28. * @ingroup PJMEDIA_CODEC_CODECS
  29. * @brief Implementation of GSM FR based on GSM 06.10 library
  30. * @{
  31. *
  32. * This section describes functions to initialize and register GSM codec
  33. * factory to the codec manager. After the codec factory has been registered,
  34. * application can use @ref PJMEDIA_CODEC API to manipulate the codec.
  35. *
  36. * The GSM codec supports 16-bit PCM with sampling rate of 8000Hz resulting
  37. * in 13.2kbps bitrate.
  38. *
  39. * \section gsm_codec_setting Codec Settings
  40. *
  41. * \subsection gsm_general_setting General Settings
  42. *
  43. * General codec settings for this codec such as VAD and PLC can be
  44. * manipulated through the <tt>setting</tt> field in #pjmedia_codec_param.
  45. * Please see the documentation of #pjmedia_codec_param for more info.
  46. *
  47. * \subsection gsm_specific_setting Codec Specific Settings
  48. *
  49. * Currently none.
  50. */
  51. PJ_BEGIN_DECL
  52. /**
  53. * Initialize and register GSM codec factory to pjmedia endpoint.
  54. *
  55. * @param endpt The pjmedia endpoint.
  56. *
  57. * @return PJ_SUCCESS on success.
  58. */
  59. PJ_DECL(pj_status_t) pjmedia_codec_gsm_init( pjmedia_endpt *endpt );
  60. /**
  61. * Unregister GSM codec factory from pjmedia endpoint and deinitialize
  62. * the GSM codec library.
  63. *
  64. * @return PJ_SUCCESS on success.
  65. */
  66. PJ_DECL(pj_status_t) pjmedia_codec_gsm_deinit(void);
  67. PJ_END_DECL
  68. /**
  69. * @}
  70. */
  71. #endif /* __PJMEDIA_CODEC_GSM_H__ */