mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:18:24 +02:00
Fix the case when local-echo and self-reverb both active
This commit is contained in:
parent
998f6e099f
commit
3060aa960d
1 changed files with 2 additions and 2 deletions
|
@ -555,7 +555,7 @@ void AudioClient::configureReverb() {
|
||||||
_listenerReverb.setParameters(&p);
|
_listenerReverb.setParameters(&p);
|
||||||
|
|
||||||
// used for adding self-reverb to loopback audio
|
// used for adding self-reverb to loopback audio
|
||||||
p.wetDryMix = _shouldEchoLocally ? 0.0f : 100.0f; // local echo is 100% dry
|
p.wetDryMix = 100.0f;
|
||||||
p.preDelay = 0.0f;
|
p.preDelay = 0.0f;
|
||||||
p.earlyGain = -96.0f; // disable ER
|
p.earlyGain = -96.0f; // disable ER
|
||||||
p.lateGain -= 6.0f; // quieter than listener reverb
|
p.lateGain -= 6.0f; // quieter than listener reverb
|
||||||
|
@ -666,7 +666,7 @@ void AudioClient::handleLocalEchoAndReverb(QByteArray& inputByteArray) {
|
||||||
_inputFormat, _outputFormat);
|
_inputFormat, _outputFormat);
|
||||||
|
|
||||||
// apply stereo reverb at the source, to the loopback audio
|
// apply stereo reverb at the source, to the loopback audio
|
||||||
if (hasReverb) {
|
if (!_shouldEchoLocally && hasReverb) {
|
||||||
assert(_outputFormat.channelCount() == 2);
|
assert(_outputFormat.channelCount() == 2);
|
||||||
updateReverbOptions();
|
updateReverbOptions();
|
||||||
_sourceReverb.render(loopbackSamples, loopbackSamples, numLoopbackSamples/2);
|
_sourceReverb.render(loopbackSamples, loopbackSamples, numLoopbackSamples/2);
|
||||||
|
|
Loading…
Reference in a new issue