move isStereo packing to the correct position

This commit is contained in:
Atlante45 2014-09-05 16:18:02 -07:00
parent 507419162c
commit 619aebcd67

View file

@ -64,13 +64,13 @@ void AudioInjector::injectAudio() {
// pack some placeholder sequence number for now
int numPreSequenceNumberBytes = injectAudioPacket.size();
packetStream << (quint16)0;
// pack the stereo/mono type of the stream
packetStream << _options.isStereo();
// pack stream identifier (a generated UUID)
packetStream << QUuid::createUuid();
// pack the stereo/mono type of the stream
packetStream << _options.isStereo();
// pack the flag for loopback
uchar loopbackFlag = (uchar) (!_options.getLoopbackAudioInterface());
packetStream << loopbackFlag;