2017-01-02 21:07:43 -05:00
|
|
|
// Copyright (c) Charles J. Cliffe
|
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
|
2015-11-16 23:49:54 -05:00
|
|
|
#pragma once
|
|
|
|
#include "Modem.h"
|
|
|
|
|
|
|
|
class ModemIQ : public Modem {
|
|
|
|
public:
|
|
|
|
ModemIQ();
|
2015-11-30 21:58:54 -05:00
|
|
|
|
2015-11-18 23:40:30 -05:00
|
|
|
std::string getType();
|
|
|
|
std::string getName();
|
2015-11-30 21:58:54 -05:00
|
|
|
|
2016-07-24 15:25:17 -04:00
|
|
|
static ModemBase *factory();
|
2015-11-30 21:58:54 -05:00
|
|
|
|
2015-11-22 19:56:25 -05:00
|
|
|
int checkSampleRate(long long sampleRate, int audioSampleRate);
|
2015-11-30 21:58:54 -05:00
|
|
|
int getDefaultSampleRate();
|
|
|
|
|
|
|
|
ModemKit *buildKit(long long sampleRate, int audioSampleRate);
|
|
|
|
|
2015-11-16 23:49:54 -05:00
|
|
|
void disposeKit(ModemKit *kit);
|
2015-11-30 21:58:54 -05:00
|
|
|
|
2015-11-16 23:49:54 -05:00
|
|
|
void demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
};
|