Changeset 182


Ignore:
Timestamp:
12/20/06 23:31:29 (18 years ago)
Author:
r2d
Message:
  • scaled libmpcdec output so I now have meaningful results
  • removed gain reference
Location:
libmpc/branches/r2d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/libreplaygain/gain_analysis.c

    r180 r182  
    438438    }
    439439
    440     return (Float_t) ((Float_t)PINK_REF - (Float_t)i / (Float_t)STEPS_per_dB);
     440    return (Float_t)i / (Float_t)STEPS_per_dB;
    441441}
    442442
  • libmpc/branches/r2d/mpcgain/mpcgain.c

    r180 r182  
    7676
    7777                        for( i = 0; i < frame.samples; i++){
    78                                 left_samples[i] = sample_buffer[2 * i];
    79                                 right_samples[i] = sample_buffer[2 * i + 1];
     78                                left_samples[i] = sample_buffer[2 * i] * (1 << 15);
     79                                right_samples[i] = sample_buffer[2 * i + 1] * (1 << 15);
    8080                        }
    8181
Note: See TracChangeset for help on using the changeset viewer.