Ignore:
Timestamp:
05/12/07 12:43:05 (17 years ago)
Author:
r2d
Message:
  • Corrected end of loop condition when encoded file doesn't report correct length
  • Changed replay gain ref in mpcdec info
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/mpcdec/mpcdec.c

    r318 r323  
    7373        printf("length: %d:%.2d (%u samples)\n", minutes, seconds, (mpc_uint32_t)mpc_streaminfo_get_length_samples(info));
    7474        printf("file size: %d Bytes\n", info->total_file_length);
    75         printf("track peak: %2.2f dB\n", info->peak_title / 256.);
    76         printf("track gain: %2.2f dB / %2.2f dB\n", info->gain_title / 256., info->gain_title == 0 ? 0 : 65. - info->gain_title / 256.);
    77         printf("album peak: %2.2f dB\n", info->peak_album / 256.);
    78         printf("album gain: %2.2f dB / %2.2f dB\n", info->gain_album / 256., info->gain_album == 0 ? 0 : 65. - info->gain_album / 256.);
     75        printf("track peak: %2.2f dB\n", info->peak_title / 256.f);
     76        printf("track gain: %2.2f dB / %2.2f dB\n", info->gain_title / 256.f, info->gain_title == 0 ? 0 : 64.82f - info->gain_title / 256.f);
     77        printf("album peak: %2.2f dB\n", info->peak_album / 256.f);
     78        printf("album gain: %2.2f dB / %2.2f dB\n", info->gain_album / 256.f, info->gain_album == 0 ? 0 : 64.82f - info->gain_album / 256.f);
    7979        printf("\n");
    8080
Note: See TracChangeset for help on using the changeset viewer.