|
|
|
|
@ -62,6 +62,10 @@ SWGNFMModSettings::SWGNFMModSettings() {
@@ -62,6 +62,10 @@ SWGNFMModSettings::SWGNFMModSettings() {
|
|
|
|
|
m_audio_device_name_isSet = false; |
|
|
|
|
mod_af_input = 0; |
|
|
|
|
m_mod_af_input_isSet = false; |
|
|
|
|
pre_emphasis_on = 0; |
|
|
|
|
m_pre_emphasis_on_isSet = false; |
|
|
|
|
bpf_on = 0; |
|
|
|
|
m_bpf_on_isSet = false; |
|
|
|
|
stream_index = 0; |
|
|
|
|
m_stream_index_isSet = false; |
|
|
|
|
use_reverse_api = 0; |
|
|
|
|
@ -122,6 +126,10 @@ SWGNFMModSettings::init() {
@@ -122,6 +126,10 @@ SWGNFMModSettings::init() {
|
|
|
|
|
m_audio_device_name_isSet = false; |
|
|
|
|
mod_af_input = 0; |
|
|
|
|
m_mod_af_input_isSet = false; |
|
|
|
|
pre_emphasis_on = 0; |
|
|
|
|
m_pre_emphasis_on_isSet = false; |
|
|
|
|
bpf_on = 0; |
|
|
|
|
m_bpf_on_isSet = false; |
|
|
|
|
stream_index = 0; |
|
|
|
|
m_stream_index_isSet = false; |
|
|
|
|
use_reverse_api = 0; |
|
|
|
|
@ -167,6 +175,8 @@ SWGNFMModSettings::cleanup() {
@@ -167,6 +175,8 @@ SWGNFMModSettings::cleanup() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(reverse_api_address != nullptr) {
|
|
|
|
|
delete reverse_api_address; |
|
|
|
|
} |
|
|
|
|
@ -229,6 +239,10 @@ SWGNFMModSettings::fromJsonObject(QJsonObject &pJson) {
@@ -229,6 +239,10 @@ SWGNFMModSettings::fromJsonObject(QJsonObject &pJson) {
|
|
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&mod_af_input, pJson["modAFInput"], "qint32", ""); |
|
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&pre_emphasis_on, pJson["preEmphasisOn"], "qint32", ""); |
|
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&bpf_on, pJson["bpfOn"], "qint32", ""); |
|
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&stream_index, pJson["streamIndex"], "qint32", ""); |
|
|
|
|
|
|
|
|
|
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", ""); |
|
|
|
|
@ -314,6 +328,12 @@ SWGNFMModSettings::asJsonObject() {
@@ -314,6 +328,12 @@ SWGNFMModSettings::asJsonObject() {
|
|
|
|
|
if(m_mod_af_input_isSet){ |
|
|
|
|
obj->insert("modAFInput", QJsonValue(mod_af_input)); |
|
|
|
|
} |
|
|
|
|
if(m_pre_emphasis_on_isSet){ |
|
|
|
|
obj->insert("preEmphasisOn", QJsonValue(pre_emphasis_on)); |
|
|
|
|
} |
|
|
|
|
if(m_bpf_on_isSet){ |
|
|
|
|
obj->insert("bpfOn", QJsonValue(bpf_on)); |
|
|
|
|
} |
|
|
|
|
if(m_stream_index_isSet){ |
|
|
|
|
obj->insert("streamIndex", QJsonValue(stream_index)); |
|
|
|
|
} |
|
|
|
|
@ -515,6 +535,26 @@ SWGNFMModSettings::setModAfInput(qint32 mod_af_input) {
@@ -515,6 +535,26 @@ SWGNFMModSettings::setModAfInput(qint32 mod_af_input) {
|
|
|
|
|
this->m_mod_af_input_isSet = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
qint32 |
|
|
|
|
SWGNFMModSettings::getPreEmphasisOn() { |
|
|
|
|
return pre_emphasis_on; |
|
|
|
|
} |
|
|
|
|
void |
|
|
|
|
SWGNFMModSettings::setPreEmphasisOn(qint32 pre_emphasis_on) { |
|
|
|
|
this->pre_emphasis_on = pre_emphasis_on; |
|
|
|
|
this->m_pre_emphasis_on_isSet = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
qint32 |
|
|
|
|
SWGNFMModSettings::getBpfOn() { |
|
|
|
|
return bpf_on; |
|
|
|
|
} |
|
|
|
|
void |
|
|
|
|
SWGNFMModSettings::setBpfOn(qint32 bpf_on) { |
|
|
|
|
this->bpf_on = bpf_on; |
|
|
|
|
this->m_bpf_on_isSet = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
qint32 |
|
|
|
|
SWGNFMModSettings::getStreamIndex() { |
|
|
|
|
return stream_index; |
|
|
|
|
@ -661,6 +701,12 @@ SWGNFMModSettings::isSet(){
@@ -661,6 +701,12 @@ SWGNFMModSettings::isSet(){
|
|
|
|
|
if(m_mod_af_input_isSet){ |
|
|
|
|
isObjectUpdated = true; break; |
|
|
|
|
} |
|
|
|
|
if(m_pre_emphasis_on_isSet){ |
|
|
|
|
isObjectUpdated = true; break; |
|
|
|
|
} |
|
|
|
|
if(m_bpf_on_isSet){ |
|
|
|
|
isObjectUpdated = true; break; |
|
|
|
|
} |
|
|
|
|
if(m_stream_index_isSet){ |
|
|
|
|
isObjectUpdated = true; break; |
|
|
|
|
} |
|
|
|
|
|