mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 11:33:44 +02:00
check if audio mixer is alive before packet send
This commit is contained in:
parent
c5047ec76d
commit
a6641908fb
1 changed files with 6 additions and 4 deletions
|
@ -238,10 +238,12 @@ void AudioInjector::injectToMixer() {
|
|||
|
||||
// grab our audio mixer from the NodeList, if it exists
|
||||
SharedNodePointer audioMixer = nodeList->soloNodeOfType(NodeType::AudioMixer);
|
||||
|
||||
// send off this audio packet
|
||||
nodeList->sendUnreliablePacket(*audioPacket, *audioMixer);
|
||||
outgoingInjectedAudioSequenceNumber++;
|
||||
|
||||
if (audioMixer) {
|
||||
// send off this audio packet
|
||||
nodeList->sendUnreliablePacket(*audioPacket, *audioMixer);
|
||||
outgoingInjectedAudioSequenceNumber++;
|
||||
}
|
||||
|
||||
_currentSendPosition += bytesToCopy;
|
||||
|
||||
|
|
Loading…
Reference in a new issue