Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1,3 +1,4 @@ | ||
| 1 | + | |
| 1 | 2 | // |
| 2 | 3 | // ScriptEngine.cpp |
| 3 | 4 | // libraries/script-engine/src |
| @@ -469,7 +470,10 @@ void ScriptEngine::run() { · 465 unmodified lines | ||
| 469 | 470 | |
| 470 | 471 | // pack a placeholder value for sequence number for now, will be packed when destination node is known |
| 471 | 472 | int numPreSequenceNumberBytes = audioPacket.size(); |
| 472 | − packetStream << (quint16)0; | |
| 473 | + packetStream << (quint16) 0; | |
| 474 | + | |
| 475 | + // assume scripted avatar audio is mono and set channel flag to zero | |
| 476 | + packetStream << (quint8) 0; | |
| 473 | 477 | |
| 474 | 478 | // use the orientation and position of this avatar for the source of this audio |
| 475 | 479 | packetStream.writeRawData(reinterpret_cast<const char*>(&_avatarData->getPosition()), sizeof(glm::vec3)); |