mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
Apply master volume to audio streams when solo is active
This commit is contained in:
parent
833ad936c0
commit
963269f3f6
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ void AudioMixerSlave::addStream(AudioMixerClientData::MixableStream& mixableStre
|
|||
float distance = glm::max(glm::length(relativePosition), EPSILON);
|
||||
float azimuth = isEcho ? 0.0f : computeAzimuth(listeningNodeStream, listeningNodeStream, relativePosition);
|
||||
|
||||
float gain = 1.0f;
|
||||
float gain = masterListenerGain;
|
||||
if (!isSoloing) {
|
||||
gain = computeGain(masterListenerGain, listeningNodeStream, *streamToAdd, relativePosition, distance, isEcho);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue