mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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
|
// loop through all other nodes that have sufficient audio to mix
|
||||||
for (NodeList::iterator otherNode = nodeList->begin(); otherNode != nodeList->end(); otherNode++) {
|
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()))) {
|
&& (otherNode != node || (otherNode == node && nodeRingBuffer->shouldLoopbackForNode()))) {
|
||||||
PositionalAudioRingBuffer* otherNodeBuffer = (PositionalAudioRingBuffer*) otherNode->getLinkedData();
|
PositionalAudioRingBuffer* otherNodeBuffer = (PositionalAudioRingBuffer*) otherNode->getLinkedData();
|
||||||
// based on our listen mode we will do this mixing...
|
// based on our listen mode we will do this mixing...
|
||||||
|
|
Loading…
Reference in a new issue