diff options
author | Joshua Colp <jcolp@digium.com> | 2016-11-28 08:57:44 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-11-28 08:57:44 -0600 |
commit | c9cc64b911243dfce860ff7e9902a1265a54f889 (patch) | |
tree | 0bbcc7e032a1ae7e51b80371c860d974d2a89b21 /include/asterisk | |
parent | e3dae763ee77485bcbcf8818d2b8c9570afe3013 (diff) | |
parent | b2b5f9d897d1534f366b1b96fb10ad1de4f9ba5d (diff) |
Merge "ast_format: Adds an identifier for interleaved audio formats to the ast_format"
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/format.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asterisk/format.h b/include/asterisk/format.h index a5ca03818..b01592d16 100644 --- a/include/asterisk/format.h +++ b/include/asterisk/format.h @@ -299,6 +299,24 @@ void ast_format_set_attribute_data(struct ast_format *format, void *attribute_da const char *ast_format_get_name(const struct ast_format *format); /*! + * \brief Get the channel count on a format + * + * \param The media format + * + * \return Currently set channel count + */ +unsigned int ast_format_get_channel_count(const struct ast_format *format); + +/*! + * \brief Set the channel count on a format + * + * \param format The media format + * \param channel_count The number of audio channels used + * + */ +void ast_format_set_channel_count(struct ast_format *format, unsigned int channel_count); + +/*! * \brief Get the codec associated with a format * * \param format The media format |