Changeset 380 for dsfilters/dec_mpc/src/mpc_filter.cpp
- Timestamp:
- 01/05/08 20:49:27 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dsfilters/dec_mpc/src/mpc_filter.cpp
r379 r380 328 328 int total_samples_decoded = 0; 329 329 330 // discontinuity after seek - reset scale factors 331 if (pSample->IsDiscontinuity() == NOERROR) { 332 mpc_decoder_reset_scf(demux->d, 0); 333 } 334 335 330 336 // now scan through the frames 331 337 int frame_cnt = 1 << stream_info.block_pwr; … … 483 489 { 484 490 if (m_pInput->IsConnected()) { 485 if (gain) *gain = stream_info.gain_title / 256.0; 491 float g = 0; 492 if (stream_info.gain_title != 0) { 493 g = (64.82 - stream_info.gain_title / 256.0 ); 494 } 495 if (stream_info.gain_album != 0) { 496 g = (64.82 - stream_info.gain_album / 256.0 ); 497 } 498 499 if (gain) *gain = g; 486 500 return NOERROR; 487 501 } else {
Note: See TracChangeset
for help on using the changeset viewer.