kopia lustrzana https://gitlab.com/eliggett/wfview
Small fix when requesting stream
rodzic
ba0509ba61
commit
7d5a066108
|
@ -244,7 +244,7 @@ typedef union conninfo_packet {
|
|||
char unusedj[8]; // 0x78
|
||||
};
|
||||
struct { // Send
|
||||
char ident[16]; // 0x60 // Not sure what this is?
|
||||
char username[16]; // 0x60
|
||||
char rxenable; // 0x70
|
||||
char txenable; // 0x71
|
||||
char rxcodec; // 0x72
|
||||
|
@ -253,9 +253,8 @@ typedef union conninfo_packet {
|
|||
quint32 txsample; // 0x78
|
||||
quint32 civport; // 0x7c
|
||||
quint32 audioport; // 0x80
|
||||
quint32 txbuffer; // 0x85
|
||||
char unusedk; // 0x84
|
||||
char unusedl[7]; // 0x89
|
||||
quint32 txbuffer; // 0x84
|
||||
char unusedl[8]; // 0x88
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -352,7 +352,7 @@ void udpHandler::sendRequestStream()
|
|||
p.txenable = 1;
|
||||
p.rxcodec = rxCodec;
|
||||
p.txcodec = txCodec;
|
||||
memcpy(&p.ident, QByteArrayLiteral("&96D7").constData(), 5);
|
||||
memcpy(&p.username, usernameEncoded.constData(), usernameEncoded.length());
|
||||
p.rxsample = qToBigEndian((quint32)rxSampleRate);
|
||||
p.txsample = qToBigEndian((quint32)txSampleRate);
|
||||
p.civport = qToBigEndian((quint32)civPort);
|
||||
|
|
|
@ -243,6 +243,9 @@ private:
|
|||
char identa;
|
||||
quint32 identb;
|
||||
|
||||
QByteArray usernameEncoded;
|
||||
QByteArray passwordEncoded;
|
||||
|
||||
QTimer* tokenTimer = Q_NULLPTR;
|
||||
QTimer* areYouThereTimer = Q_NULLPTR;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue