CubicSDR/src/demod/DemodulatorThread.h
Charles J. Cliffe 7f5031b6e5 cleanup
2014-11-17 21:35:10 -05:00

44 lines
818 B
C++

#pragma once
#include <queue>
#include <vector>
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/thread.h"
#include "DemodulatorThreadQueue.h"
#include "liquid/liquid.h"
class DemodulatorThread: public wxThread {
public:
DemodulatorThread(DemodulatorThreadQueue* pQueue, int id = 0);
~DemodulatorThread();
protected:
virtual ExitCode Entry();
DemodulatorThreadQueue* m_pQueue;
int m_ID;
firfilt_crcf fir_filter;
firfilt_crcf fir_audio_filter;
unsigned int bandwidth;
msresamp_crcf resampler;
float resample_ratio;
unsigned int wbfm_frequency;
msresamp_crcf wbfm_resampler;
float wbfm_resample_ratio;
unsigned int audio_frequency;
msresamp_crcf audio_resampler;
float audio_resample_ratio;
freqdem fdem;
};