SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <ssbmodsettings.h>
Public Types | |
enum | SSBModInputAF { SSBModInputNone, SSBModInputTone, SSBModInputFile, SSBModInputAudio, SSBModInputCWTone } |
Public Member Functions | |
SSBModSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setSpectrumGUI (Serializable *spectrumGUI) |
void | setCWKeyerGUI (Serializable *cwKeyerGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
qint64 | m_inputFrequencyOffset |
Real | m_bandwidth |
Real | m_lowCutoff |
bool | m_usb |
float | m_toneFrequency |
float | m_volumeFactor |
int | m_spanLog2 |
bool | m_audioBinaural |
bool | m_audioFlipChannels |
bool | m_dsb |
bool | m_audioMute |
bool | m_playLoop |
bool | m_agc |
quint32 | m_rgbColor |
QString | m_title |
SSBModInputAF | m_modAFInput |
QString | m_audioDeviceName |
This is the audio device you get the audio samples from. More... | |
QString | m_feedbackAudioDeviceName |
This is the audio device you send the audio samples to for audio feedback. More... | |
float | m_feedbackVolumeFactor |
bool | m_feedbackAudioEnable |
bool | m_useReverseAPI |
QString | m_reverseAPIAddress |
uint16_t | m_reverseAPIPort |
uint16_t | m_reverseAPIDeviceIndex |
uint16_t | m_reverseAPIChannelIndex |
Serializable * | m_channelMarker |
Serializable * | m_spectrumGUI |
Serializable * | m_cwKeyerGUI |
Static Public Attributes | |
static const int | m_nbAGCTimeConstants = 10 |
static const int | m_agcTimeConstant [] |
Definition at line 27 of file ssbmodsettings.h.
Enumerator | |
---|---|
SSBModInputNone | |
SSBModInputTone | |
SSBModInputFile | |
SSBModInputAudio | |
SSBModInputCWTone |
Definition at line 29 of file ssbmodsettings.h.
SSBModSettings::SSBModSettings | ( | ) |
Definition at line 39 of file ssbmodsettings.cpp.
References resetToDefaults().
bool SSBModSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 120 of file ssbmodsettings.cpp.
References Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_agc, m_audioBinaural, m_audioDeviceName, m_audioFlipChannels, m_bandwidth, m_channelMarker, m_cwKeyerGUI, AudioDeviceManager::m_defaultDeviceName, m_dsb, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_inputFrequencyOffset, m_lowCutoff, m_modAFInput, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_spectrumGUI, m_title, m_toneFrequency, m_useReverseAPI, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readReal(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), resetToDefaults(), and SSBModInputNone.
Referenced by SSBModGUI::deserialize(), SSBMod::deserialize(), and setCWKeyerGUI().
void SSBModSettings::resetToDefaults | ( | ) |
Definition at line 47 of file ssbmodsettings.cpp.
References m_agc, m_audioBinaural, m_audioDeviceName, m_audioFlipChannels, m_audioMute, m_bandwidth, AudioDeviceManager::m_defaultDeviceName, m_dsb, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_inputFrequencyOffset, m_lowCutoff, m_modAFInput, m_playLoop, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_title, m_toneFrequency, m_usb, m_useReverseAPI, and m_volumeFactor.
Referenced by SSBModGUI::deserialize(), deserialize(), SSBMod::deserialize(), SSBModGUI::resetToDefaults(), and SSBModSettings().
QByteArray SSBModSettings::serialize | ( | ) | const |
Definition at line 76 of file ssbmodsettings.cpp.
References SimpleSerializer::final(), m_agc, m_audioBinaural, m_audioDeviceName, m_audioFlipChannels, m_bandwidth, m_channelMarker, m_cwKeyerGUI, m_dsb, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_inputFrequencyOffset, m_lowCutoff, m_modAFInput, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rgbColor, m_spanLog2, m_spectrumGUI, m_title, m_toneFrequency, m_useReverseAPI, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeReal(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by SSBModGUI::serialize(), SSBMod::serialize(), and setCWKeyerGUI().
|
inline |
Definition at line 75 of file ssbmodsettings.h.
Referenced by SSBModGUI::SSBModGUI().
|
inline |
Definition at line 77 of file ssbmodsettings.h.
References deserialize(), and serialize().
Referenced by SSBModGUI::SSBModGUI().
|
inline |
Definition at line 76 of file ssbmodsettings.h.
Referenced by SSBModGUI::SSBModGUI().
bool SSBModSettings::m_agc |
Definition at line 53 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBModGUI::on_agc_toggled(), SSBMod::pullAF(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
|
static |
Definition at line 39 of file ssbmodsettings.h.
bool SSBModSettings::m_audioBinaural |
Definition at line 48 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBModGUI::on_audioBinaural_toggled(), SSBMod::pullAF(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
QString SSBModSettings::m_audioDeviceName |
This is the audio device you get the audio samples from.
Definition at line 58 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), SSBModGUI::audioFeedbackSelect(), SSBModGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
bool SSBModSettings::m_audioFlipChannels |
Definition at line 49 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBModGUI::on_audioFlipChannels_toggled(), SSBMod::pullAF(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
bool SSBModSettings::m_audioMute |
Definition at line 51 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), SSBModGUI::displaySettings(), SSBModGUI::on_audioMute_toggled(), SSBMod::pullAF(), resetToDefaults(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
Real SSBModSettings::m_bandwidth |
Definition at line 42 of file ssbmodsettings.h.
Referenced by SSBMod::applyAudioSampleRate(), SSBModGUI::applyBandwidths(), SSBMod::applyChannelSettings(), SSBModGUI::applySettings(), SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBModGUI::handleMessage(), resetToDefaults(), serialize(), SSBMod::SSBMod(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
Serializable* SSBModSettings::m_channelMarker |
Definition at line 69 of file ssbmodsettings.h.
Referenced by deserialize(), and serialize().
Serializable* SSBModSettings::m_cwKeyerGUI |
Definition at line 71 of file ssbmodsettings.h.
Referenced by deserialize(), and serialize().
bool SSBModSettings::m_dsb |
Definition at line 50 of file ssbmodsettings.h.
Referenced by SSBModGUI::applyBandwidths(), SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBMod::pullAF(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
QString SSBModSettings::m_feedbackAudioDeviceName |
This is the audio device you send the audio samples to for audio feedback.
Definition at line 59 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), SSBModGUI::audioFeedbackSelect(), deserialize(), resetToDefaults(), and serialize().
bool SSBModSettings::m_feedbackAudioEnable |
Definition at line 61 of file ssbmodsettings.h.
Referenced by deserialize(), SSBModGUI::displaySettings(), SSBMod::modulateSample(), SSBModGUI::on_feedbackEnable_toggled(), resetToDefaults(), and serialize().
float SSBModSettings::m_feedbackVolumeFactor |
Definition at line 60 of file ssbmodsettings.h.
Referenced by deserialize(), SSBModGUI::displaySettings(), SSBMod::modulateSample(), SSBModGUI::on_feedbackVolume_valueChanged(), resetToDefaults(), and serialize().
qint64 SSBModSettings::m_inputFrequencyOffset |
Definition at line 41 of file ssbmodsettings.h.
Referenced by SSBMod::applyAudioSampleRate(), SSBModGUI::applySettings(), SSBMod::applySettings(), SSBModGUI::channelMarkerChangedByCursor(), deserialize(), SSBModGUI::displaySettings(), SSBMod::getCenterFrequency(), SSBMod::getStreamCenterFrequency(), SSBModGUI::on_deltaFrequency_changed(), SSBModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBModGUI::setCenterFrequency(), SSBMod::start(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
Real SSBModSettings::m_lowCutoff |
Definition at line 43 of file ssbmodsettings.h.
Referenced by SSBMod::applyAudioSampleRate(), SSBModGUI::applyBandwidths(), SSBModGUI::applySettings(), SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBModGUI::handleMessage(), resetToDefaults(), serialize(), SSBMod::SSBMod(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
SSBModInputAF SSBModSettings::m_modAFInput |
Definition at line 57 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBModGUI::on_mic_toggled(), SSBModGUI::on_morseKeyer_toggled(), SSBModGUI::on_play_toggled(), SSBModGUI::on_tone_toggled(), SSBMod::pullAF(), resetToDefaults(), serialize(), SSBModGUI::tick(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
|
static |
Definition at line 38 of file ssbmodsettings.h.
bool SSBModSettings::m_playLoop |
Definition at line 52 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), SSBModGUI::displaySettings(), SSBModGUI::on_playLoop_toggled(), SSBMod::pullAF(), resetToDefaults(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
QString SSBModSettings::m_reverseAPIAddress |
Definition at line 64 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendCWSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
uint16_t SSBModSettings::m_reverseAPIChannelIndex |
Definition at line 67 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendCWSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
uint16_t SSBModSettings::m_reverseAPIDeviceIndex |
Definition at line 66 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendCWSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
uint16_t SSBModSettings::m_reverseAPIPort |
Definition at line 65 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendCWSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
quint32 SSBModSettings::m_rgbColor |
Definition at line 54 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), SSBModGUI::channelMarkerUpdate(), deserialize(), SSBModGUI::displaySettings(), SSBModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
int SSBModSettings::m_spanLog2 |
Definition at line 47 of file ssbmodsettings.h.
Referenced by SSBModGUI::applyBandwidths(), SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBMod::pullAF(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
Serializable* SSBModSettings::m_spectrumGUI |
Definition at line 70 of file ssbmodsettings.h.
Referenced by deserialize(), and serialize().
QString SSBModSettings::m_title |
Definition at line 56 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBMod::getTitle(), SSBModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
float SSBModSettings::m_toneFrequency |
Definition at line 45 of file ssbmodsettings.h.
Referenced by SSBMod::applyAudioSampleRate(), SSBMod::applySettings(), deserialize(), SSBModGUI::displaySettings(), SSBModGUI::on_toneFrequency_valueChanged(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
bool SSBModSettings::m_usb |
Definition at line 44 of file ssbmodsettings.h.
Referenced by SSBMod::applyAudioSampleRate(), SSBModGUI::applySettings(), SSBMod::applySettings(), SSBModGUI::handleMessage(), SSBMod::pullAF(), resetToDefaults(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().
bool SSBModSettings::m_useReverseAPI |
Definition at line 63 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), deserialize(), SSBMod::handleMessage(), SSBModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), SSBMod::webapiFormatChannelSettings(), and SSBMod::webapiSettingsPutPatch().
float SSBModSettings::m_volumeFactor |
Definition at line 46 of file ssbmodsettings.h.
Referenced by SSBMod::applySettings(), SSBModGUI::displaySettings(), SSBModGUI::on_volume_valueChanged(), SSBMod::pullAF(), resetToDefaults(), SSBMod::webapiFormatChannelSettings(), SSBMod::webapiReverseSendSettings(), and SSBMod::webapiSettingsPutPatch().