summaryrefslogtreecommitdiff
path: root/include/asterisk/frame.h
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-09-07 01:30:01 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-09-07 01:30:01 +0000
commit5fdc070109c757f0df4321d3cd5d0069b77b3f46 (patch)
tree8165a261cb124dd45a1b6129516aabef87fce470 /include/asterisk/frame.h
parent2f67f665779c1cbc714c9757143769e79845fd5c (diff)
add new channel option (via ast_channel_setoption()) to let channel drivers adjust txgain/rxgain if they are able (only Zap channels at this time)
modify app_chanspy to use new gain option reformat app_chanspy to match coding guidelines add user-controlled volume adjustment to app_meetme (issue #4170, heavily modified to actually work on Zap channels) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/frame.h')
-rwxr-xr-xinclude/asterisk/frame.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index ae42b6cae..e39974d36 100755
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -227,6 +227,22 @@ struct ast_frame_chain {
/* Set (or clear) Audio (Not-Clear) Mode */
#define AST_OPTION_AUDIO_MODE 4
+/* Set channel transmit gain */
+/* Option data is a single signed char
+ representing number of decibels (dB)
+ to set gain to (on top of any gain
+ specified in channel driver)
+*/
+#define AST_OPTION_TXGAIN 5
+
+/* Set channel receive gain */
+/* Option data is a single signed char
+ representing number of decibels (dB)
+ to set gain to (on top of any gain
+ specified in channel driver)
+*/
+#define AST_OPTION_RXGAIN 6
+
struct ast_option_header {
/* Always keep in network byte order */
#if __BYTE_ORDER == __BIG_ENDIAN