summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-06-06 08:59:37 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-06-06 08:59:37 -0500
commit452e6315bb8be7578937de279aa1d906662faa20 (patch)
tree04af862a33045c6167d58756c776e65e18e9fd73 /include
parent1a24543124bb06ec0cb0d0b174287323bbe83815 (diff)
parent5c27fe218776b499cff772660f2b4b7ee42b3802 (diff)
Merge "format: Reintroduce smoother flags"
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/codec.h2
-rw-r--r--include/asterisk/format.h11
-rw-r--r--include/asterisk/smoother.h1
3 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/codec.h b/include/asterisk/codec.h
index 2f5756cd1..79798acd0 100644
--- a/include/asterisk/codec.h
+++ b/include/asterisk/codec.h
@@ -76,6 +76,8 @@ struct ast_codec {
int (*get_length)(unsigned int samples);
/*! \brief Whether the media can be smoothed or not */
unsigned int smooth;
+ /*! \brief Flags to be passed to the smoother */
+ unsigned int smoother_flags;
/*! \brief The module that registered this codec */
struct ast_module *mod;
};
diff --git a/include/asterisk/format.h b/include/asterisk/format.h
index b01592d16..0bad96dcc 100644
--- a/include/asterisk/format.h
+++ b/include/asterisk/format.h
@@ -356,6 +356,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
*
* \param format The media format
diff --git a/include/asterisk/smoother.h b/include/asterisk/smoother.h
index e63aa77bd..65ac88921 100644
--- a/include/asterisk/smoother.h
+++ b/include/asterisk/smoother.h
@@ -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
*/