Ignore:
Timestamp:
04/05/08 20:09:57 (17 years ago)
Author:
r2d
Message:

libmpcdec API cleanup and documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/streaminfo.c

    r382 r390  
    126126        si->block_pwr          = 0;
    127127
    128 // This is the gain reference used in old replaygain
    129 #define OLD_GAIN_REF 64.82
    130 
    131128        // convert gain info
    132129        if (si->gain_title != 0) {
    133                 int tmp = (int)((OLD_GAIN_REF - (mpc_int16_t)si->gain_title / 100.) * 256. + .5);
     130                int tmp = (int)((MPC_OLD_GAIN_REF - (mpc_int16_t)si->gain_title / 100.) * 256. + .5);
    134131                if (tmp >= (1 << 16) || tmp < 0) tmp = 0;
    135132                si->gain_title = (mpc_int16_t) tmp;
     
    137134
    138135        if (si->gain_album != 0) {
    139                 int tmp = (int)((OLD_GAIN_REF - (mpc_int16_t)si->gain_album / 100.) * 256. + .5);
     136                int tmp = (int)((MPC_OLD_GAIN_REF - (mpc_int16_t)si->gain_album / 100.) * 256. + .5);
    140137                if (tmp >= (1 << 16) || tmp < 0) tmp = 0;
    141138                si->gain_album = (mpc_int16_t) tmp;
Note: See TracChangeset for help on using the changeset viewer.