mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-05 15:34:39 -04:00
Tentative and temporary change to encode MSK144 in a separate process.
NB: temporary files are being written to execution directory! git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6989 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+12
-2
@@ -78,7 +78,8 @@ extern "C" {
|
||||
int* itext, int len1, int len2);
|
||||
|
||||
void genmsk144_(char* msg, int* ichk, char* msgsent, int itone[],
|
||||
int* itext, char pchkFile[], int len1, int len2, int len3);
|
||||
int* itext, char pchkFile[], char ldpcMsgFile[],
|
||||
int len1, int len2, int len3, int len4);
|
||||
|
||||
void gen65_(char* msg, int* ichk, char* msgsent, int itone[],
|
||||
int* itext, int len1, int len2);
|
||||
@@ -836,6 +837,14 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
if(i<pchkFile.length()) m_pchkFile[i]=ba[i];
|
||||
}
|
||||
|
||||
QString ldpcMsgFile = m_config.temp_dir().absoluteFilePath("ldpc_msg");
|
||||
ldpcMsgFile = '"' + ldpcMsgFile + '"';
|
||||
ba = ldpcMsgFile.toLocal8Bit();
|
||||
for(int i=0; i<512; i++) {
|
||||
m_ldpcMsgFile[i]=32;
|
||||
if(i<ldpcMsgFile.length()) m_ldpcMsgFile[i]=ba[i];
|
||||
}
|
||||
|
||||
statusChanged();
|
||||
//### The following is temporary ###
|
||||
{
|
||||
@@ -2745,7 +2754,8 @@ void MainWindow::guiUpdate()
|
||||
&m_currentMessageType, len1, len1);
|
||||
if(m_modeTx=="MSK144") {
|
||||
genmsk144_(message, &ichk, msgsent, const_cast<int *> (itone),
|
||||
&m_currentMessageType, &m_pchkFile[0], len1, len1, 512);
|
||||
&m_currentMessageType, &m_pchkFile[0], &m_ldpcMsgFile[0],
|
||||
len1, len1, 512, 512);
|
||||
if(m_restart) {
|
||||
int nsym=144;
|
||||
if(itone[40]==-40) nsym=40;
|
||||
|
||||
Reference in New Issue
Block a user