Ignore:
Timestamp:
Sep 16, 2008 4:28:40 PM (15 years ago)
Author:
bennylp
Message:

More ticket #619: fix the difference of volume in the fixed point version of the tone generator, added PJMEDIA_TONEGEN_VOLUME setting to control the default amplitude, and increase default tone volume by about 50%

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/tonegen.c

    r2281 r2284  
    3131 
    3232/* amplitude */ 
    33 #define AMP     8192 
     33#define AMP     PJMEDIA_TONEGEN_VOLUME 
    3434 
    3535 
     
    116116#   define SIN                  approximate_sin3 
    117117#   if 1    /* set this to 0 to disable volume adjustment */ 
    118 #       define VOL(var,v)       (((v) * var.vol) >> 16) 
     118#       define VOL(var,v)       (((v) * var.vol) >> 15) 
    119119#   else 
    120120#       define VOL(var,v)       (v) 
Note: See TracChangeset for help on using the changeset viewer.