add another check to avoid any mixing for a silent frame

This commit is contained in:
Stephen Birarda 2014-03-21 14:37:31 -07:00
parent 3d9aa6cc9f
commit 98f014d13d

View file

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