diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-22 19:29:29 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-22 19:29:29 +0000 |
commit | ff971379f47ea4c9ab1fab2569fe34d7d3aaafc6 (patch) | |
tree | e481d99c54cefe083c7ee461127c426a76ca3f23 /include/asterisk/frame.h | |
parent | 69f9c479e7e8e1fb58a585e60d6eeb0f0616922c (diff) |
support new format for musiconhold.conf (issue #4908)
support non-SLINEAR moh streams (issue #4908)
add external app to feed TCP stream into Asterisk for moh (issue #4908)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/frame.h')
-rwxr-xr-x | include/asterisk/frame.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index 7cff43ee6..41a4e7cb5 100755 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -398,6 +398,9 @@ extern void ast_codec_pref_convert(struct ast_codec_pref *pref, char *buf, size_ /* Returns the number of samples contained in the frame */ extern int ast_codec_get_samples(struct ast_frame *f); +/* Returns the number of bytes for the number of samples of the given format */ +extern int ast_codec_get_len(int format, int samples); + /* Gets duration in ms of interpolation frame for a format */ static inline int ast_codec_interp_len(int format) { |