Skip to content

Commit 4dfd9eb

Browse files
committed
cleanup value names and code in src/dsp_dab/pad_decoder.[cpp|h]
This change the class values to start with "m_.,," and change few code parts, e.g. use override or to have structures first in header.
1 parent 81f7dd2 commit 4dfd9eb

File tree

3 files changed

+208
-211
lines changed

3 files changed

+208
-211
lines changed

src/dsp_dab/decoder_adapter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include "dab_decoder.h"
3939
#include "dabplus_decoder.h"
4040

41-
class DecoderAdapter: public DabProcessor, public SubchannelSinkObserver, public PADDecoderObserver
41+
class DecoderAdapter: public DabProcessor, public SubchannelSinkObserver, public IPADDecoderObserver
4242
{
4343
public:
4444
DecoderAdapter(ProgrammeHandlerInterface& mr,
@@ -57,7 +57,7 @@ class DecoderAdapter: public DabProcessor, public SubchannelSinkObserver, public
5757
virtual void ACCFrameError(const unsigned char /* error*/);
5858
virtual void FECInfo(int /*total_corr_count*/, bool /*uncorr_errors*/);
5959

60-
// PADDecoderObserver impl
60+
// IPADDecoderObserver impl
6161
virtual void PADChangeDynamicLabel(const DL_STATE& dl);
6262
virtual void PADChangeSlide(const MOT_FILE& slide);
6363
virtual void PADLengthError(size_t announced_xpad_len, size_t xpad_len);
@@ -67,7 +67,7 @@ class DecoderAdapter: public DabProcessor, public SubchannelSinkObserver, public
6767
int frameErrorCounter = 0;
6868
ProgrammeHandlerInterface& myInterface;
6969
std::unique_ptr<SubchannelSink> decoder;
70-
PADDecoder padDecoder;
70+
CPADDecoder padDecoder;
7171

7272
struct FILEDeleter{ void operator()(FILE* fd){ if (fd) fclose(fd); }};
7373
std::unique_ptr<FILE, FILEDeleter> dumpFile;

0 commit comments

Comments
 (0)