bug fix: server gain calculations were incorrect
This commit is contained in:
parent
a49cb6408c
commit
45bd6ca52b
2 changed files with 12 additions and 15 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
3.5.5git
|
3.5.5git
|
||||||
|
|
||||||
- added vocal banjo/mandolin instrument icons created by atsampson (#283)
|
- added vocal banjo/mandolin instrument icons created by atsampson (#283)
|
||||||
|
@ -13,10 +14,14 @@
|
||||||
|
|
||||||
- New Client Level now also applies if you enter a server
|
- New Client Level now also applies if you enter a server
|
||||||
|
|
||||||
|
- bug fix: honour own fader and Mute button in Mute Myself (#148)
|
||||||
|
|
||||||
- bug fix: audio fader sliders cannot be moved if the main windows is too small (#292)
|
- bug fix: audio fader sliders cannot be moved if the main windows is too small (#292)
|
||||||
|
|
||||||
|
- bug fix: server gain calculations were incorrect
|
||||||
|
|
||||||
TODO honour own fader and Mute button in Mute Myself (#148)
|
|
||||||
|
TODO go back to original fader range dynamic (since issue was caused by server gain calculation)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1203,13 +1203,9 @@ void CServer::ProcessData ( const CVector<CVector<int16_t> >& vecvecsData,
|
||||||
// mono: copy same mono data in both out stereo audio channels
|
// mono: copy same mono data in both out stereo audio channels
|
||||||
for ( i = 0, k = 0; i < iServerFrameSizeSamples; i++, k += 2 )
|
for ( i = 0, k = 0; i < iServerFrameSizeSamples; i++, k += 2 )
|
||||||
{
|
{
|
||||||
// left channel
|
// left/right channel
|
||||||
vecsOutData[k] = Double2Short (
|
vecsOutData[k] = Double2Short ( vecsOutData[k] + vecsData[i] * dGainL );
|
||||||
vecsOutData[k] + vecsData[i] * dGain * dGainL );
|
vecsOutData[k + 1] = Double2Short ( vecsOutData[k + 1] + vecsData[i] * dGainR );
|
||||||
|
|
||||||
// right channel
|
|
||||||
vecsOutData[k + 1] = Double2Short (
|
|
||||||
vecsOutData[k + 1] + vecsData[i] * dGain * dGainR );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -1217,13 +1213,9 @@ void CServer::ProcessData ( const CVector<CVector<int16_t> >& vecvecsData,
|
||||||
// stereo
|
// stereo
|
||||||
for ( i = 0; i < ( 2 * iServerFrameSizeSamples ); i += 2 )
|
for ( i = 0; i < ( 2 * iServerFrameSizeSamples ); i += 2 )
|
||||||
{
|
{
|
||||||
// left channel
|
// left/right channel
|
||||||
vecsOutData[i] = Double2Short (
|
vecsOutData[i] = Double2Short ( vecsOutData[i] + vecsData[i] * dGainL );
|
||||||
vecsOutData[i] + vecsData[i] * dGain * dGainL );
|
vecsOutData[i + 1] = Double2Short ( vecsOutData[i + 1] + vecsData[i + 1] * dGainR );
|
||||||
|
|
||||||
// right channel
|
|
||||||
vecsOutData[i + 1] = Double2Short (
|
|
||||||
vecsOutData[i + 1] + vecsData[i + 1] * dGain * dGainR );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue