Changeset 404


Ignore:
Timestamp:
04/25/08 17:05:15 (17 years ago)
Author:
r2d
Message:

updated mpcgain according to libreplaygain new functions name

File:
1 edited

Legend:

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

    r353 r404  
    9696                mpc_demux_get_info(demux,  &si);
    9797
    98                 if (j == 1) InitGainAnalysis ( si.sample_freq );
     98                if (j == 1) gain_init_analysis ( si.sample_freq );
    9999
    100100                while(1) {
     
    113113                        }
    114114
    115                         AnalyzeSamples(left_samples, right_samples, frame.samples, si.channels);
     115                        gain_analyze_samples(left_samples, right_samples, frame.samples, si.channels);
    116116                }
    117117
    118                 title_gain[j-1] = (mpc_uint16_t) (GetTitleGain() * 256);
     118                title_gain[j-1] = (mpc_uint16_t) (gain_get_title() * 256);
    119119                title_peak[j-1] = (mpc_uint16_t) (log10(title_max * (1 << 15)) * 20 * 256);
    120120                header_pos[j-1] = si.header_position + 4;
     
    126126        }
    127127
    128         album_gain = (mpc_uint16_t) (GetAlbumGain() * 256);
     128        album_gain = (mpc_uint16_t) (gain_get_album() * 256);
    129129        album_peak = (mpc_uint16_t) (log10(album_max * (1 << 15)) * 20 * 256);
    130130
Note: See TracChangeset for help on using the changeset viewer.