summaryrefslogtreecommitdiff
path: root/sm_main.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-12-28 12:31:37 +0000
committerDave Hibberd <hibby@debian.org>2024-12-28 12:31:37 +0000
commitcf9ffe00bf6c0c7dd17ceef0a6ae822fe3a9a1f5 (patch)
tree044a7732ccb120e7d90e7632306f8edc8e23c63a /sm_main.c
parentd0709a1e0a04bf74f240dc0fdb8697f030b68cea (diff)
New upstream version 0.0.0.74~rc2upstream/0.0.0.74_rc2upstream/latest
Diffstat (limited to 'sm_main.c')
-rw-r--r--sm_main.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/sm_main.c b/sm_main.c
index fba2f2f..7cc526b 100644
--- a/sm_main.c
+++ b/sm_main.c
@@ -30,8 +30,19 @@ void make_core_LPF(UCHAR snd_ch, short width);
void dw9600ProcessSample(int snd_ch, short Sample);
void init_RUH48(int snd_ch);
void init_RUH96(int snd_ch);
-
-char modes_name[modes_count][21] =
+void CheckPSKWindows();
+void Demodulator(int snd_ch, int rcvr_nr, float * src_buf, int last, int xcenter);
+void sendSamplestoUDP(short * Samples, int nSamples, int Port);
+void RSIDProcessSamples(short * Samples, int nSamples);
+void ARDOPProcessNewSamples(int chan, short * Samples, int nSamples);
+void doWaterfall(int snd_ch);
+void displayWaterfall();
+void timer_event();
+void decode_frame(Byte * frame, int len, Byte * path, string * data, Byte * pid, Byte * nr, Byte * ns, Byte * f_type, Byte * f_id, Byte * rpt, Byte * pf, Byte * cr);
+void get_monitor_path(Byte * path, char * mycall, char * corrcall, char * digi);
+void ProcessRXFrames(int snd_ch);
+
+char modes_name[modes_count][21] =
{
"AFSK AX.25 300bd","AFSK AX.25 1200bd","AFSK AX.25 600bd","AFSK AX.25 2400bd",
"BPSK AX.25 1200bd","BPSK AX.25 600bd","BPSK AX.25 300bd","BPSK AX.25 2400bd",
@@ -827,10 +838,10 @@ void runModems()
if (thread[2]) WaitForSingleObject(&thread[2], 2000);
if (thread[3]) WaitForSingleObject(&thread[3], 2000);
#else
- if (thread[0]) pthread_join(thread[0], &res);
- if (thread[1]) pthread_join(thread[1], &res);
- if (thread[2]) pthread_join(thread[2], &res);
- if (thread[3]) pthread_join(thread[3], &res);
+ if (thread[0]) pthread_join(thread[0], NULL);
+ if (thread[1]) pthread_join(thread[1], NULL);
+ if (thread[2]) pthread_join(thread[2], NULL);
+ if (thread[3]) pthread_join(thread[3], NULL);
#endif
}
}