~mixxxcontributors/mixxx/advanced_autodj

« back to all changes in this revision

Viewing changes to mixxx/src/engine/enginepregain.cpp

  • Committer: Daniel Schürmann
  • Date: 2013-06-12 23:27:21 UTC
  • mfrom: (3184.1.101 mixxx-trunk)
  • Revision ID: daschuer@mixxx.org-20130612232721-ol6h11m9xbf72d2k
merge -r date:2012-06-26 lp:mixxx

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *                                                                         *
15
15
 ***************************************************************************/
16
16
 
 
17
#include <QtDebug>
 
18
 
17
19
#include "engine/enginepregain.h"
18
20
#include "controllogpotmeter.h"
19
21
#include "controlpotmeter.h"
68
70
    float fGain = potmeterPregain->get();
69
71
    float fReplayGain = m_pControlReplayGain->get();
70
72
    m_fReplayGainCorrection=1;
 
73
    // TODO(XXX) Why do we do this? Removing it results in clipping at unity
 
74
    // gain so I think it was trying to compensate for some issue when we added
 
75
    // replaygain but even at unity gain (no RG) we are clipping. rryan 5/2012
71
76
    fGain = fGain/2;
72
77
    if(fReplayGain*fEnableReplayGain != 0)
73
78
    {