1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-10 01:49:27 -04:00

File Input: REST API: updated with new settings elements

This commit is contained in:
f4exb
2018-10-14 10:38:31 +02:00
parent 6852b70597
commit b397cd3a4b
10 changed files with 154 additions and 38 deletions
@@ -249,7 +249,7 @@ void FileSourceGui::on_playLoop_toggled(bool checked)
if (m_doApplySettings)
{
m_settings.m_loop = checked;
FileSourceInput::MsgConfigureFileSource *message = FileSourceInput::MsgConfigureFileSource::create(m_settings);
FileSourceInput::MsgConfigureFileSource *message = FileSourceInput::MsgConfigureFileSource::create(m_settings, false);
m_sampleSource->getInputMessageQueue()->push(message);
}
}
@@ -329,7 +329,7 @@ void FileSourceGui::on_acceleration_currentIndexChanged(int index)
if (m_doApplySettings)
{
m_settings.m_accelerationFactor = FileSourceSettings::getAccelerationValue(index);
FileSourceInput::MsgConfigureFileSource *message = FileSourceInput::MsgConfigureFileSource::create(m_settings);
FileSourceInput::MsgConfigureFileSource *message = FileSourceInput::MsgConfigureFileSource::create(m_settings, false);
m_sampleSource->getInputMessageQueue()->push(message);
}
}
@@ -358,7 +358,7 @@ void FileSourceGui::updateWithStreamData()
recordLength = recordLength.addSecs(m_recordLength);
QString s_time = recordLength.toString("HH:mm:ss");
ui->recordLengthText->setText(s_time);
updateWithStreamTime(); // TODO: remove when time data is implemented
updateWithStreamTime();
}
void FileSourceGui::updateWithStreamTime()