Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -460,8 +460,8 @@ void ScriptEngine::run() { · 459 unmodified lines | |||
| 460 | } | 460 | } |
| 461 | 461 | ||
| 462 | QByteArray audioPacket = byteArrayWithPopulatedHeader(silentFrame | 462 | QByteArray audioPacket = byteArrayWithPopulatedHeader(silentFrame |
| 463 | ? PacketTypeSilentAudioFrame | 463 | ? PacketTypeSilentAudioFrame |
| 464 | : PacketTypeMicrophoneAudioNoEcho); | 464 | : PacketTypeMicrophoneAudioNoEcho); |
| 465 | 465 | ||
| 466 | QDataStream packetStream(&audioPacket, QIODevice::Append); | 466 | QDataStream packetStream(&audioPacket, QIODevice::Append); |
| 467 | 467 | ||
| @@ -485,7 +485,7 @@ void ScriptEngine::run() { · 17 unmodified lines | |||
| 485 | } else if (nextSoundOutput) { | 485 | } else if (nextSoundOutput) { |
| 486 | // write the raw audio data | 486 | // write the raw audio data |
| 487 | packetStream.writeRawData(reinterpret_cast<const char*>(nextSoundOutput), | 487 | packetStream.writeRawData(reinterpret_cast<const char*>(nextSoundOutput), |
| 488 | numAvailableSamples * sizeof(int16_t)); | 488 | numAvailableSamples * sizeof(int16_t)); |
| 489 | } | 489 | } |
| 490 | 490 | ||
| 491 | // write audio packet to AudioMixer nodes | 491 | // write audio packet to AudioMixer nodes |