ggwave-gui : add volume and protocol selection

This commit is contained in:
Georgi Gerganov
2020-12-05 14:45:18 +02:00
parent 1ee4274c48
commit 368962c82d
3 changed files with 170 additions and 82 deletions

View File

@@ -72,12 +72,14 @@ public:
const int & getSampleSizeBytesOut() const { return m_sampleSizeBytesOut; }
const float & getSampleRateIn() const { return m_sampleRateIn; }
const float & getSampleRateOut() const { return m_sampleRateOut; }
const TxProtocol & getDefultTxProtocol() const { return kTxProtocols[1]; }
const TxProtocols & getTxProtocols() const { return kTxProtocols; }
const TxRxData & getRxData() const { return m_rxData; }
const TxProtocol & getRxProtocol() const { return m_rxProtocol; }
const int & getRxProtocolId() const { return m_rxProtocolId; }
int takeRxData(TxRxData & dst);
private:
@@ -128,6 +130,7 @@ private:
int m_lastRxDataLength;
TxRxData m_rxData;
TxProtocol m_rxProtocol;
int m_rxProtocolId;
int m_historyId = 0;
AmplitudeData m_sampleAmplitudeAverage;