l16.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_L16_H__
  20. #define __PJMEDIA_CODEC_L16_H__
  21. #include <pjmedia-codec/types.h>
  22. /**
  23. * @defgroup PJMED_L16 L16 Codec Family
  24. * @ingroup PJMEDIA_CODEC_CODECS
  25. * @brief Implementation of PCM/16bit/linear codecs
  26. * @{
  27. *
  28. * This section describes functions to initialize and register L16 codec
  29. * factory to the codec manager. After the codec factory has been registered,
  30. * application can use @ref PJMEDIA_CODEC API to manipulate the codec.
  31. *
  32. * Note that the L16 codec factory registers several (about fourteen!)
  33. * L16 codec types to codec manager (different combinations of clock
  34. * rate and number of channels).
  35. *
  36. * \section l16_codec_setting Codec Settings
  37. *
  38. * \subsection l16_general_setting General Settings
  39. *
  40. * General codec settings for this codec such as VAD and PLC can be
  41. * manipulated through the <tt>setting</tt> field in #pjmedia_codec_param.
  42. * Please see the documentation of #pjmedia_codec_param for more info.
  43. *
  44. * \subsection l16_specific_setting Codec Specific Settings
  45. *
  46. * Currently none.
  47. */
  48. PJ_BEGIN_DECL
  49. /**
  50. * Initialize and register L16 codec factory to pjmedia endpoint.
  51. *
  52. * @param endpt The pjmedia endpoint.
  53. * @param options Must be zero for now.
  54. *
  55. * @return PJ_SUCCESS on success.
  56. */
  57. PJ_DECL(pj_status_t) pjmedia_codec_l16_init( pjmedia_endpt *endpt,
  58. unsigned options);
  59. /**
  60. * Unregister L16 codec factory from pjmedia endpoint.
  61. *
  62. * @return PJ_SUCCESS on success.
  63. */
  64. PJ_DECL(pj_status_t) pjmedia_codec_l16_deinit(void);
  65. PJ_END_DECL
  66. /**
  67. * @}
  68. */
  69. #endif /* __PJMEDIA_CODEC_L16_H__ */