diff options
Diffstat (limited to 'muse2/muse/node.cpp')
-rw-r--r-- | muse2/muse/node.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/muse2/muse/node.cpp b/muse2/muse/node.cpp index 02264a37..ffc26ee9 100644 --- a/muse2/muse/node.cpp +++ b/muse2/muse/node.cpp @@ -406,8 +406,8 @@ void AudioTrack::copyData(unsigned pos, int dstChannels, int srcStartChan, int s double _pan = controller()->value(AC_PAN, pos, !MusEGlobal::automation || automationType() == AUTO_OFF || !_panEnCtrl || !_panEn2Ctrl); - vol[0] = _volume * (1.0 - _pan); - vol[1] = _volume * (1.0 + _pan); + vol[0] = _volume * (1.0 - _pan) * _gain; + vol[1] = _volume * (1.0 + _pan) * _gain; float meter[trackChans]; // Have we been here already during this process cycle? @@ -744,8 +744,8 @@ void AudioTrack::addData(unsigned pos, int dstChannels, int srcStartChan, int sr double _pan = controller()->value(AC_PAN, pos, !MusEGlobal::automation || automationType() == AUTO_OFF || !_panEnCtrl || !_panEn2Ctrl); - vol[0] = _volume * (1.0 - _pan); - vol[1] = _volume * (1.0 + _pan); + vol[0] = _volume * (1.0 - _pan) * _gain; + vol[1] = _volume * (1.0 + _pan) * _gain; float meter[trackChans]; // Have we been here already during this process cycle? |