mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user