Merge pull request #2410 from birarda/audio-scaling

require a min loudness for stream to be mixed in
This commit is contained in:
Philip Rosedale 2014-03-20 16:18:41 -07:00
commit 4a719f678e

View file

@ -305,7 +305,7 @@ void AudioMixer::prepareMixForListeningNode(Node* node) {
if ((*otherNode != *node
|| otherNodeBuffer->shouldLoopbackForNode())
&& otherNodeBuffer->willBeAddedToMix()
&& otherNodeClientData->getNextOutputLoudness() > 0) {
&& otherNodeClientData->getNextOutputLoudness() > _minRequiredLoudness) {
addBufferToMixForListeningNodeWithBuffer(otherNodeBuffer, nodeRingBuffer);
}
}