Update DAB Demod to use latest DAB API, that fixes #1608

This commit is contained in:
Jon Beniston 2023-03-03 22:51:14 +00:00
parent 6b2705065b
commit de7192b6b4
2 changed files with 10 additions and 7 deletions

View File

@ -279,12 +279,10 @@ void motDataHandler(uint8_t *data, int len, const char *filename, int contentsub
sink->motData(data, len, QString::fromUtf8(filename), contentsubType);
}
// Missing ctx for tiiDataHandler - https://github.com/JvanKatwijk/dab-cmdline/issues/89
DABDemodSink *tiiSink;
void tiiDataHandler(int tii)
void tiiDataHandler(int tii, void *ctx)
{
tiiSink->tii(tii);
DABDemodSink *sink = (DABDemodSink *)ctx;
sink->tii(tii);
}
void DABDemodSink::systemData(bool sync, int16_t snr, int32_t freqOffset)
@ -523,7 +521,6 @@ DABDemodSink::DABDemodSink(DABDemod *packetDemod) :
m_api.motdata_Handler = motDataHandler;
m_api.tii_data_Handler = tiiDataHandler;
m_api.timeHandler = nullptr;
tiiSink = this;
m_dab = dabInit(&m_device,
&m_api,
nullptr,

View File

@ -77,6 +77,12 @@ The statistics areas displays statistics generated by the demodulator that may g
If you are hearing dropouts in audio, try adjusting your antenna in order to improve the reported SNR.
<h3>Transmitter</h3>
Displays the TII (Transmitter Identification Information) main and sub IDs in hexidecimal, which can identify which transmitter the DAB signal is being primarily received from.
Pressing the "Find Transmitter on Map" button will attempt to locate the transmitter with the same IDs and Ensemble name on the [Map](../../feature/map/readme.md) feature.
<h2>Attribution</h2>
The DAB demodulator used DAB library by Jvan Katwijk.
The DAB demodulator uses the DAB library by Jvan Katwijk.