diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-07 14:54:42 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-07 14:54:42 +0000 |
commit | 0559737a4b46072135f53d178796cc326aee3441 (patch) | |
tree | 8c363781015b35454b3616619dcce1889e561d23 /include | |
parent | b741bc6c3692b4269efce961bbf3b378850e9990 (diff) |
Put my slinfactory changes back in.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113009 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/slinfactory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asterisk/slinfactory.h b/include/asterisk/slinfactory.h index 386cf51ba..4d3e8eaf8 100644 --- a/include/asterisk/slinfactory.h +++ b/include/asterisk/slinfactory.h @@ -28,10 +28,12 @@ extern "C" { #endif +#define AST_SLINFACTORY_MAX_HOLD 1280 + struct ast_slinfactory { AST_LIST_HEAD_NOLOCK(, ast_frame) queue; /*!< A list of unaltered frames */ struct ast_trans_pvt *trans; /*!< Translation path that converts fed frames into signed linear */ - short hold[1280]; /*!< Hold for audio that no longer belongs to a frame (ie: if only some samples were taken from a frame) */ + short hold[AST_SLINFACTORY_MAX_HOLD]; /*!< Hold for audio that no longer belongs to a frame (ie: if only some samples were taken from a frame) */ short *offset; /*!< Offset into the hold where audio begins */ size_t holdlen; /*!< Number of samples currently in the hold */ unsigned int size; /*!< Number of samples currently in the factory */ |