summaryrefslogtreecommitdiff
path: root/SoundInput.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-09-12 21:38:19 +0100
committerDave Hibberd <d@vehibberd.com>2023-09-12 21:38:19 +0100
commit51667f3056f13acc54229843121ac37093e5c4fa (patch)
treef307ba57caaddce0bfce270fcd5f54865881bc2c /SoundInput.c
parentcc152664115edea852d18f9a1505db6914dce569 (diff)
parent3cdcbeea3e2891f4a10c79b272da144f37ff24f3 (diff)
Update upstream source from tag 'upstream/0.67'
Update to upstream version '0.67' with Debian dir d407fa05796b5e411553bba52531842bd913bb88
Diffstat (limited to 'SoundInput.c')
-rw-r--r--SoundInput.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/SoundInput.c b/SoundInput.c
index 5d7e7bc..32366f5 100644
--- a/SoundInput.c
+++ b/SoundInput.c
@@ -322,7 +322,7 @@ VOID Track1Car4FSK(short * intSamples, int * intPtr, int intSampPerSymbol, float
VOID Decode1CarPSK(int Carrier, BOOL OFDM);
int EnvelopeCorrelator();
int EnvelopeCorrelatorNew();
-BOOL DecodeFrame(int intFrameType, UCHAR * bytData);
+BOOL DecodeFrame(int chan, int intFrameType, UCHAR * bytData);
void Update4FSKConstellation(int * intToneMags, int * intQuality);
void Update16FSKConstellation(int * intToneMags, int * intQuality);
@@ -864,7 +864,7 @@ float dblFreqBin[MAXCAR];
BOOL CheckFrameTypeParity(int intTonePtr, int * intToneMags);
-void ARDOPProcessNewSamples(short * Samples, int nSamples)
+void ARDOPProcessNewSamples(int chan, short * Samples, int nSamples)
{
BOOL blnFrameDecodedOK = FALSE;
@@ -1264,7 +1264,7 @@ else if (intPhaseError > 2)
// This mechanism is to skip actual decoding and reply/change state...no need to decode
- blnFrameDecodedOK = DecodeFrame(intFrameType, bytData);
+ blnFrameDecodedOK = DecodeFrame(chan, intFrameType, bytData);
ProcessFrame:
@@ -3047,7 +3047,7 @@ void DemodulateFrame(int intFrameType)
int intSNdB = 0, intQuality = 0;
-BOOL DecodeFrame(int xxx, UCHAR * bytData)
+BOOL DecodeFrame(int chan, int xxx, UCHAR * bytData)
{
BOOL blnDecodeOK = FALSE;
char strCallerCallsign[10] = "";
@@ -3176,7 +3176,7 @@ BOOL DecodeFrame(int xxx, UCHAR * bytData)
// Data in bytData len in frameLen
- ProcessPktFrame(0, bytData, frameLen);
+ ProcessPktFrame(chan, bytData, frameLen);
// else
// L2Routine(bytData, frameLen, intLastRcvdFrameQuality, totalRSErrors, intNumCar, pktRXMode);