diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 19:29:29 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 19:29:29 +0000 |
commit | 304aac9d8f68a374d9cd5d2b2204f8c26f10a948 (patch) | |
tree | e481d99c54cefe083c7ee461127c426a76ca3f23 /include | |
parent | 19577acdfe461381b3de979cb5b0d0e39ed18ec4 (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: http://svn.digium.com/svn/asterisk/trunk@6353 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-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) { |