- Timestamp:
- Sep 16, 2008 4:28:40 PM (16 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/config.h
r2281 r2284 605 605 606 606 /** 607 * The default tone generator amplitude (1-32767). 608 * 609 * Default value: 12288 610 */ 611 #ifndef PJMEDIA_TONEGEN_VOLUME 612 # define PJMEDIA_TONEGEN_VOLUME 12288 613 #endif 614 615 616 /** 607 617 * Enable support for SRTP media transport. This will require linking 608 618 * with libsrtp from the third_party directory. -
pjproject/trunk/pjmedia/include/pjmedia/tonegen.h
r2039 r2284 64 64 short on_msec; /**< Playback ON duration, in miliseconds. */ 65 65 short off_msec; /**< Playback OFF duration, ini miliseconds. */ 66 short volume; /**< Volume (1-16383), or 0 for default. */ 66 short volume; /**< Volume (1-32767), or 0 for default, which 67 PJMEDIA_TONEGEN_VOLUME will be used. */ 67 68 } pjmedia_tone_desc; 68 69 … … 78 79 short on_msec; /**< Playback ON duration, in miliseconds. */ 79 80 short off_msec; /**< Playback OFF duration, ini miliseconds. */ 80 short volume; /**< Volume (1-16383), or 0 for default. */ 81 short volume; /**< Volume (1-32767), or 0 for default, which 82 PJMEDIA_TONEGEN_VOLUME will be used. */ 81 83 } pjmedia_tone_digit; 82 84 -
pjproject/trunk/pjmedia/src/pjmedia/tonegen.c
r2281 r2284 31 31 32 32 /* amplitude */ 33 #define AMP 819233 #define AMP PJMEDIA_TONEGEN_VOLUME 34 34 35 35 … … 116 116 # define SIN approximate_sin3 117 117 # if 1 /* set this to 0 to disable volume adjustment */ 118 # define VOL(var,v) (((v) * var.vol) >> 1 6)118 # define VOL(var,v) (((v) * var.vol) >> 15) 119 119 # else 120 120 # define VOL(var,v) (v)
Note: See TracChangeset
for help on using the changeset viewer.