Showing the changes to interface/src/Application.cpp (1 of 8 files). Show all
Unified · Split
| @@ -3447,9 +3447,19 @@ void* Application::networkReceive(void* args) { · 3446 unmodified lines | ||
| 3447 | 3447 | case PACKET_TYPE_AVATAR_FACE_VIDEO: |
| 3448 | 3448 | processAvatarFaceVideoMessage(app->_incomingPacket, bytesReceived); |
| 3449 | 3449 | break; |
| 3450 | − default: | |
| 3450 | + default: { | |
| 3451 | 3451 | NodeList::getInstance()->processNodeData(&senderAddress, app->_incomingPacket, bytesReceived); |
| 3452 | + | |
| 3453 | + // Check to see if we have our ownerID | |
| 3454 | + uint16_t ownerID = NodeList::getInstance()->getOwnerID(); | |
| 3455 | + | |
| 3456 | + if (ownerID != app->_audio.getSourceID()) { | |
| 3457 | + app->_audio.setSourceID(ownerID); | |
| 3458 | + } | |
| 3459 | + | |
| 3460 | + | |
| 3452 | 3461 | break; |
| 3462 | + } | |
| 3453 | 3463 | } |
| 3454 | 3464 | } |
| 3455 | 3465 | } else if (!app->_enableNetworkThread) { |