mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "format: Reintroduce smoother flags" into 13
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
#ifndef _AST_CODEC_H_
|
||||
#define _AST_CODEC_H_
|
||||
|
||||
#define AST_SMOOTHER_FLAGS_PACK(x) ((x) << 1)
|
||||
#define AST_SMOOTHER_FLAGS_UNPACK(x) ((x) >> 1)
|
||||
|
||||
/*! \brief Types of media */
|
||||
enum ast_media_type {
|
||||
AST_MEDIA_TYPE_UNKNOWN = 0,
|
||||
|
@@ -337,6 +337,17 @@ const char *ast_format_get_codec_name(const struct ast_format *format);
|
||||
*/
|
||||
int ast_format_can_be_smoothed(const struct ast_format *format);
|
||||
|
||||
/*!
|
||||
* \since 13.17.0
|
||||
*
|
||||
* \brief Get smoother flags for this format
|
||||
*
|
||||
* \param format The media format
|
||||
*
|
||||
* \return smoother flags for the provided format
|
||||
*/
|
||||
int ast_format_get_smoother_flags(const struct ast_format *format);
|
||||
|
||||
/*!
|
||||
* \brief Get the media type of a format
|
||||
*
|
||||
|
@@ -33,6 +33,7 @@ extern "C" {
|
||||
|
||||
#define AST_SMOOTHER_FLAG_G729 (1 << 0)
|
||||
#define AST_SMOOTHER_FLAG_BE (1 << 1)
|
||||
#define AST_SMOOTHER_FLAG_FORCED (1 << 2)
|
||||
|
||||
/*! \name AST_Smoother
|
||||
*/
|
||||
|
Reference in New Issue
Block a user