1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

FT8 demod: implement callback as an interface class. Added test .wav file and file option in the sdrbench options

This commit is contained in:
f4exb
2023-01-09 00:38:15 +01:00
parent 23e01ea064
commit 7cd08ef1e9
8 changed files with 101 additions and 28 deletions
+5 -5
View File
@@ -445,7 +445,7 @@ public:
float down_hz_;
static std::mutex cb_mu_;
cb_t cb_; // call-back into Python
CallbackInterface *cb_; // call-back interface
std::mutex hack_mu_;
int hack_size_;
@@ -469,7 +469,7 @@ public:
int hints2[],
double deadline,
double final_deadline,
cb_t cb,
CallbackInterface *cb,
std::vector<cdecode> prevdecs
)
{
@@ -3513,10 +3513,10 @@ public:
float snr = guess_snr(m79);
if (cb_ != 0)
if (cb_)
{
cb_mu_.lock();
int ret = cb_(
int ret = cb_->hcb(
a174,
best_hz + down_hz_,
best_off,
@@ -3603,7 +3603,7 @@ void entry(
int hints2[],
double time_left,
double total_time_left,
cb_t cb,
CallbackInterface *cb,
int nprevdecs,
struct cdecode *xprevdecs
)