Changeset 404 for libmpc/trunk/mpcgain
- Timestamp:
- 04/25/08 17:05:15 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/mpcgain/mpcgain.c
r353 r404 96 96 mpc_demux_get_info(demux, &si); 97 97 98 if (j == 1) InitGainAnalysis ( si.sample_freq );98 if (j == 1) gain_init_analysis ( si.sample_freq ); 99 99 100 100 while(1) { … … 113 113 } 114 114 115 AnalyzeSamples(left_samples, right_samples, frame.samples, si.channels);115 gain_analyze_samples(left_samples, right_samples, frame.samples, si.channels); 116 116 } 117 117 118 title_gain[j-1] = (mpc_uint16_t) ( GetTitleGain() * 256);118 title_gain[j-1] = (mpc_uint16_t) (gain_get_title() * 256); 119 119 title_peak[j-1] = (mpc_uint16_t) (log10(title_max * (1 << 15)) * 20 * 256); 120 120 header_pos[j-1] = si.header_position + 4; … … 126 126 } 127 127 128 album_gain = (mpc_uint16_t) ( GetAlbumGain() * 256);128 album_gain = (mpc_uint16_t) (gain_get_album() * 256); 129 129 album_peak = (mpc_uint16_t) (log10(album_max * (1 << 15)) * 20 * 256); 130 130
Note: See TracChangeset
for help on using the changeset viewer.