summaryrefslogtreecommitdiff
path: root/sm_main.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-12-17 13:53:36 +0000
committerDave Hibberd <d@vehibberd.com>2023-12-17 13:53:36 +0000
commit54db88482aa35b971b07585510761dbd199fe987 (patch)
tree1b224b09fab839da45251c18128c5d79a63e2829 /sm_main.c
parent28348e0eac8c2f853ff8c7d577688d1766ee5bd6 (diff)
parentc264c0c63857e0c36303687d2dfc533500b93cf1 (diff)
Update upstream source from tag 'upstream/0.0.0.71'
Update to upstream version '0.0.0.71' with Debian dir a161df0a9b21e6c26b592a34373aa7d85d976578
Diffstat (limited to 'sm_main.c')
-rw-r--r--sm_main.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/sm_main.c b/sm_main.c
index 57bf549..d2c6cfd 100644
--- a/sm_main.c
+++ b/sm_main.c
@@ -27,7 +27,6 @@ void make_core_BPF(UCHAR snd_ch, short freq, short width);
void make_core_TXBPF(UCHAR snd_ch, float freq, float width);
void make_core_INTR(UCHAR snd_ch);
void make_core_LPF(UCHAR snd_ch, short width);
-void wf_pointer(int snd_ch);
void dw9600ProcessSample(int snd_ch, short Sample);
void init_RUH48(int snd_ch);
void init_RUH96(int snd_ch);
@@ -65,11 +64,8 @@ int TXPort = 8884;
BOOL Firstwaterfall = 1;
BOOL Secondwaterfall = 1;
-
int multiCore = FALSE;
-
-
BOOL MinOnStart = 0;
//RS TReedSolomon;
// Form1 TForm1;
@@ -728,7 +724,7 @@ void init_speed(int snd_ch)
form1.show_freq_a;
form1.show_freq_b;
*/
- wf_pointer(snd_ch);
+ NeedWaterfallHeaders = TRUE;
CheckPSKWindows();
}
@@ -863,6 +859,8 @@ void runModemthread(void * param)
// I think this processes a buffer of samples
+int Toggle = 0;
+
void BufferFull(short * Samples, int nSamples) // These are Stereo Samples
{
word i, i1, j;
@@ -1064,6 +1062,8 @@ void BufferFull(short * Samples, int nSamples) // These are Stereo Samples
// Collect samples for both channels if needed
+ Toggle++;
+
Needed = FFTSize - fftCount;
if (Needed <= rx_bufsize)
@@ -1076,7 +1076,8 @@ void BufferFull(short * Samples, int nSamples) // These are Stereo Samples
data1 += 2;
}
- doWaterfall(FirstWaterfallChan);
+ if ((Toggle & 1) || (UsingBothChannels == 0))
+ doWaterfall(FirstWaterfallChan);
if (data2)
{
@@ -1085,9 +1086,13 @@ void BufferFull(short * Samples, int nSamples) // These are Stereo Samples
*ptr2++ = *data2;
data2 += 2;
}
- doWaterfall(1);
+ if (((Toggle & 1) == 0))
+ doWaterfall(1);
}
+ if (Firstwaterfall || Secondwaterfall)
+ displayWaterfall();
+
remainingSamples = rx_bufsize - Needed;
fftCount = 0;