Skip to content

Commit

Permalink
Improve RAW file restarting behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbrechtL committed Oct 9, 2024
1 parent c0434be commit c995c85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/input/raw_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ int32_t CRAWFile::readBuffer(uint8_t* data, int32_t length)
std::clog << "RAWFile:" << "End of file, restarting" << std::endl;
radioController.onMessage(message_level_t::Information,
QT_TRANSLATE_NOOP("CRadioController", "End of file, restarting"));
SampleBuffer.FlushRingBuffer();
SpectrumSampleBuffer.FlushRingBuffer();
radioController.onRestartService();
}
else {
radioController.onMessage(message_level_t::Information, QT_TRANSLATE_NOOP("CRadioController", "End of file"));
Expand Down

0 comments on commit c995c85

Please sign in to comment.