Ignore:
Timestamp:
01/05/08 20:49:27 (16 years ago)
Author:
radscorpion
Message:

Fixed SV7 seeking artifacts. Fixed gain info.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dsfilters/dec_mpc/src/mpc_filter.cpp

    r379 r380  
    328328        int     total_samples_decoded = 0;
    329329
     330        // discontinuity after seek - reset scale factors
     331        if (pSample->IsDiscontinuity() == NOERROR) {
     332                mpc_decoder_reset_scf(demux->d, 0);
     333        }
     334
     335
    330336        // now scan through the frames
    331337        int frame_cnt = 1 << stream_info.block_pwr;
     
    483489{
    484490        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;
    486500                return NOERROR;
    487501        } else {
Note: See TracChangeset for help on using the changeset viewer.