Changeset 390 for libmpc/trunk/libmpcdec/streaminfo.c
- Timestamp:
- 04/05/08 20:09:57 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/streaminfo.c
r382 r390 126 126 si->block_pwr = 0; 127 127 128 // This is the gain reference used in old replaygain129 #define OLD_GAIN_REF 64.82130 131 128 // convert gain info 132 129 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); 134 131 if (tmp >= (1 << 16) || tmp < 0) tmp = 0; 135 132 si->gain_title = (mpc_int16_t) tmp; … … 137 134 138 135 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); 140 137 if (tmp >= (1 << 16) || tmp < 0) tmp = 0; 141 138 si->gain_album = (mpc_int16_t) tmp;
Note: See TracChangeset
for help on using the changeset viewer.