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 <ammodsettings.h>
Public Types | |
enum | AMModInputAF { AMModInputNone, AMModInputTone, AMModInputFile, AMModInputAudio, AMModInputCWTone } |
Public Member Functions | |
AMModSettings () | |
void | resetToDefaults () |
void | setChannelMarker (Serializable *channelMarker) |
void | setCWKeyerGUI (Serializable *cwKeyerGUI) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
Public Attributes | |
qint64 | m_inputFrequencyOffset |
Real | m_rfBandwidth |
float | m_modFactor |
float | m_toneFrequency |
float | m_volumeFactor |
bool | m_channelMute |
bool | m_playLoop |
quint32 | m_rgbColor |
QString | m_title |
AMModInputAF | 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_cwKeyerGUI |
Definition at line 25 of file ammodsettings.h.
Enumerator | |
---|---|
AMModInputNone | |
AMModInputTone | |
AMModInputFile | |
AMModInputAudio | |
AMModInputCWTone |
Definition at line 27 of file ammodsettings.h.
AMModSettings::AMModSettings | ( | ) |
Definition at line 25 of file ammodsettings.cpp.
References resetToDefaults().
bool AMModSettings::deserialize | ( | const QByteArray & | data | ) |
Definition at line 89 of file ammodsettings.cpp.
References AMModInputNone, Serializable::deserialize(), SimpleDeserializer::getVersion(), SimpleDeserializer::isValid(), m_audioDeviceName, m_channelMarker, m_cwKeyerGUI, AudioDeviceManager::m_defaultDeviceName, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_inputFrequencyOffset, m_modAFInput, m_modFactor, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, m_volumeFactor, SimpleDeserializer::readBlob(), SimpleDeserializer::readBool(), SimpleDeserializer::readReal(), SimpleDeserializer::readS32(), SimpleDeserializer::readString(), SimpleDeserializer::readU32(), and resetToDefaults().
Referenced by AMModGUI::deserialize(), AMMod::deserialize(), and setCWKeyerGUI().
void AMModSettings::resetToDefaults | ( | ) |
Definition at line 32 of file ammodsettings.cpp.
References m_audioDeviceName, m_channelMute, AudioDeviceManager::m_defaultDeviceName, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_inputFrequencyOffset, m_modAFInput, m_modFactor, m_playLoop, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, and m_volumeFactor.
Referenced by AMModSettings(), deserialize(), AMMod::deserialize(), and AMModGUI::resetToDefaults().
QByteArray AMModSettings::serialize | ( | ) | const |
Definition at line 55 of file ammodsettings.cpp.
References SimpleSerializer::final(), m_audioDeviceName, m_channelMarker, m_cwKeyerGUI, m_feedbackAudioDeviceName, m_feedbackAudioEnable, m_feedbackVolumeFactor, m_inputFrequencyOffset, m_modAFInput, m_modFactor, m_reverseAPIAddress, m_reverseAPIChannelIndex, m_reverseAPIDeviceIndex, m_reverseAPIPort, m_rfBandwidth, m_rgbColor, m_title, m_toneFrequency, m_useReverseAPI, m_volumeFactor, Serializable::serialize(), SimpleSerializer::writeBlob(), SimpleSerializer::writeBool(), SimpleSerializer::writeReal(), SimpleSerializer::writeS32(), SimpleSerializer::writeString(), and SimpleSerializer::writeU32().
Referenced by AMModGUI::serialize(), AMMod::serialize(), and setCWKeyerGUI().
|
inline |
Definition at line 61 of file ammodsettings.h.
Referenced by AMModGUI::AMModGUI().
|
inline |
Definition at line 62 of file ammodsettings.h.
References deserialize(), and serialize().
Referenced by AMModGUI::AMModGUI().
QString AMModSettings::m_audioDeviceName |
This is the audio device you get the audio samples from.
Definition at line 46 of file ammodsettings.h.
Referenced by AMMod::applySettings(), AMModGUI::audioFeedbackSelect(), AMModGUI::audioSelect(), deserialize(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
Serializable* AMModSettings::m_channelMarker |
Definition at line 56 of file ammodsettings.h.
Referenced by deserialize(), and serialize().
bool AMModSettings::m_channelMute |
Definition at line 41 of file ammodsettings.h.
Referenced by AMMod::applySettings(), AMModGUI::displaySettings(), AMModGUI::on_channelMute_toggled(), AMMod::pull(), resetToDefaults(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
Serializable* AMModSettings::m_cwKeyerGUI |
Definition at line 57 of file ammodsettings.h.
Referenced by deserialize(), and serialize().
QString AMModSettings::m_feedbackAudioDeviceName |
This is the audio device you send the audio samples to for audio feedback.
Definition at line 47 of file ammodsettings.h.
Referenced by AMMod::applySettings(), AMModGUI::audioFeedbackSelect(), deserialize(), resetToDefaults(), and serialize().
bool AMModSettings::m_feedbackAudioEnable |
Definition at line 49 of file ammodsettings.h.
Referenced by deserialize(), AMModGUI::displaySettings(), AMMod::modulateSample(), AMModGUI::on_feedbackEnable_toggled(), resetToDefaults(), and serialize().
float AMModSettings::m_feedbackVolumeFactor |
Definition at line 48 of file ammodsettings.h.
Referenced by deserialize(), AMModGUI::displaySettings(), AMMod::modulateSample(), AMModGUI::on_feedbackVolume_valueChanged(), resetToDefaults(), and serialize().
qint64 AMModSettings::m_inputFrequencyOffset |
Definition at line 36 of file ammodsettings.h.
Referenced by AMMod::applyAudioSampleRate(), AMMod::applySettings(), AMModGUI::channelMarkerChangedByCursor(), deserialize(), AMModGUI::displaySettings(), AMMod::getCenterFrequency(), AMMod::getStreamCenterFrequency(), AMModGUI::on_deltaFrequency_changed(), AMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMMod::start(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
AMModInputAF AMModSettings::m_modAFInput |
Definition at line 45 of file ammodsettings.h.
Referenced by AMMod::applySettings(), deserialize(), AMModGUI::displaySettings(), AMModGUI::on_mic_toggled(), AMModGUI::on_morseKeyer_toggled(), AMModGUI::on_play_toggled(), AMModGUI::on_tone_toggled(), AMMod::pullAF(), resetToDefaults(), serialize(), AMModGUI::tick(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
float AMModSettings::m_modFactor |
Definition at line 38 of file ammodsettings.h.
Referenced by AMMod::applySettings(), deserialize(), AMModGUI::displaySettings(), AMMod::modulateSample(), AMModGUI::on_modPercent_valueChanged(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
bool AMModSettings::m_playLoop |
Definition at line 42 of file ammodsettings.h.
Referenced by AMMod::applySettings(), AMModGUI::displaySettings(), AMModGUI::on_playLoop_toggled(), AMMod::pullAF(), resetToDefaults(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
QString AMModSettings::m_reverseAPIAddress |
Definition at line 51 of file ammodsettings.h.
Referenced by AMMod::applySettings(), deserialize(), AMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendCWSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
uint16_t AMModSettings::m_reverseAPIChannelIndex |
Definition at line 54 of file ammodsettings.h.
Referenced by AMMod::applySettings(), deserialize(), AMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendCWSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
uint16_t AMModSettings::m_reverseAPIDeviceIndex |
Definition at line 53 of file ammodsettings.h.
Referenced by AMMod::applySettings(), deserialize(), AMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendCWSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
uint16_t AMModSettings::m_reverseAPIPort |
Definition at line 52 of file ammodsettings.h.
Referenced by AMMod::applySettings(), deserialize(), AMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendCWSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
Real AMModSettings::m_rfBandwidth |
Definition at line 37 of file ammodsettings.h.
Referenced by AMMod::applyAudioSampleRate(), AMMod::applyChannelSettings(), AMMod::applySettings(), deserialize(), AMModGUI::displaySettings(), AMModGUI::on_rfBW_valueChanged(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
quint32 AMModSettings::m_rgbColor |
Definition at line 43 of file ammodsettings.h.
Referenced by deserialize(), AMModGUI::displaySettings(), AMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
QString AMModSettings::m_title |
Definition at line 44 of file ammodsettings.h.
Referenced by deserialize(), AMModGUI::displaySettings(), AMMod::getTitle(), AMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
float AMModSettings::m_toneFrequency |
Definition at line 39 of file ammodsettings.h.
Referenced by AMMod::applyAudioSampleRate(), AMMod::applySettings(), deserialize(), AMModGUI::displaySettings(), AMModGUI::on_toneFrequency_valueChanged(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().
bool AMModSettings::m_useReverseAPI |
Definition at line 50 of file ammodsettings.h.
Referenced by AMMod::applySettings(), deserialize(), AMMod::handleMessage(), AMModGUI::onMenuDialogCalled(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), and AMMod::webapiSettingsPutPatch().
float AMModSettings::m_volumeFactor |
Definition at line 40 of file ammodsettings.h.
Referenced by AMMod::applySettings(), deserialize(), AMModGUI::displaySettings(), AMModGUI::on_volume_valueChanged(), AMMod::pullAF(), resetToDefaults(), serialize(), AMMod::webapiFormatChannelSettings(), AMMod::webapiReverseSendSettings(), and AMMod::webapiSettingsPutPatch().