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
This commit is contained in:
Kevin P. Fleming
2005-08-22 19:29:29 +00:00
parent 69f9c479e7
commit ff971379f4
7 changed files with 341 additions and 69 deletions

View File

@@ -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)
{