summaryrefslogtreecommitdiff
path: root/sm_main.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-12-17 13:53:32 +0000
committerDave Hibberd <d@vehibberd.com>2023-12-17 13:53:32 +0000
commitc264c0c63857e0c36303687d2dfc533500b93cf1 (patch)
treed2de59640c3454c97c6a1de817ad3643ca081aba /sm_main.c
parent1407d7b68693f014156bac2462c2d41f9e3cb2a1 (diff)
New upstream version 0.0.0.71upstream/0.0.0.71
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;