History

removed unnecessary changes from ScriptEngine

wangyix committed 12 years ago

Commit c4a85731 parent 0711eb01 file · +3 −3Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+3−3
@@ -460,8 +460,8 @@ void ScriptEngine::run() { · 459 unmodified lines
460 }460 }
461 461
462 QByteArray audioPacket = byteArrayWithPopulatedHeader(silentFrame462 QByteArray audioPacket = byteArrayWithPopulatedHeader(silentFrame
463 ? PacketTypeSilentAudioFrame463 ? 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 data486 // 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 nodes491 // write audio packet to AudioMixer nodes