Merge pull request #1430 from diizy/master
Fix master channel peak display
This commit is contained in:
@@ -600,9 +600,6 @@ void FxMixer::masterMix( sampleFrame * _buf )
|
||||
: m_fxChannels[0]->m_volumeModel.value();
|
||||
MixHelpers::addSanitizedMultiplied( _buf, m_fxChannels[0]->m_buffer, v, fpp );
|
||||
|
||||
m_fxChannels[0]->m_peakLeft *= Engine::mixer()->masterGain();
|
||||
m_fxChannels[0]->m_peakRight *= Engine::mixer()->masterGain();
|
||||
|
||||
// clear all channel buffers and
|
||||
// reset channel process state
|
||||
for( int i = 0; i < numChannels(); ++i)
|
||||
|
||||
@@ -503,6 +503,11 @@ void FxMixerView::clear()
|
||||
void FxMixerView::updateFaders()
|
||||
{
|
||||
FxMixer * m = Engine::fxMixer();
|
||||
|
||||
// apply master gain
|
||||
m->m_fxChannels[0]->m_peakLeft *= Engine::mixer()->masterGain();
|
||||
m->m_fxChannels[0]->m_peakRight *= Engine::mixer()->masterGain();
|
||||
|
||||
for( int i = 0; i < m_fxChannelViews.size(); ++i )
|
||||
{
|
||||
const float opl = m_fxChannelViews[i]->m_fader->getPeak_L();
|
||||
|
||||
Reference in New Issue
Block a user