diff options
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/frame.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index bd1bb2a72..66b080f42 100755 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -323,6 +323,14 @@ extern char* ast_getformatname(int format); */ extern int ast_getformatbyname(char *name); +//! Get a name from a format +/*! + * \param codec codec number (1,2,4,8,16,etc.) + * Gets a name from a format + * This returns a static string identifying the format on success, 0 on error. + */ +extern char *ast_codec2str(int codec); + //! Pick the best codec /* Choose the best codec... Uhhh... Yah. */ extern int ast_best_codec(int fmts); |