mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-19 03:18:47 +02:00
fix for audio-mixer crash with node from DS
This commit is contained in:
parent
1965ff286b
commit
2fcdd708cb
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,8 @@ void AudioMixer::run() {
|
|||
|
||||
// loop through all other nodes that have sufficient audio to mix
|
||||
for (NodeList::iterator otherNode = nodeList->begin(); otherNode != nodeList->end(); otherNode++) {
|
||||
if (((PositionalAudioRingBuffer*) otherNode->getLinkedData())->willBeAddedToMix()
|
||||
if (otherNode->getLinkedData()
|
||||
&& ((PositionalAudioRingBuffer*) otherNode->getLinkedData())->willBeAddedToMix()
|
||||
&& (otherNode != node || (otherNode == node && nodeRingBuffer->shouldLoopbackForNode()))) {
|
||||
PositionalAudioRingBuffer* otherNodeBuffer = (PositionalAudioRingBuffer*) otherNode->getLinkedData();
|
||||
// based on our listen mode we will do this mixing...
|
||||
|
|
Loading…
Reference in a new issue