aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-12 19:01:03 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-12 19:01:03 +0000
commit0a934da882569311c32ab9b2d840f3e3147f6b46 (patch)
tree984bf00ec82c3410df07892932ef4b4f2f227c44 /include
parente5bd600fd7a8edcbfb1a38a115b7b9e9c3a7d097 (diff)
fixes for the new jitter buffer (bug #4249)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5639 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/frame.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index 5ca3376ce..695333514 100755
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -399,6 +399,12 @@ extern int ast_codec_pref_string(struct ast_codec_pref *pref, char *buf, size_t
/* Shift a codec preference list up or down 65 bytes so that it becomes an ASCII string */
extern void ast_codec_pref_convert(struct ast_codec_pref *pref, char *buf, size_t size, int right);
+/* Gets duration in ms of interpolation frame for a format */
+static inline int ast_codec_interp_len(int format)
+{
+ return (format == AST_FORMAT_ILBC) ? 30 : 20;
+}
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif