Fixed the issues #3280

This commit is contained in:
Belousov Oleg
2026-07-30 15:14:03 +03:00
parent f5719c9c3c
commit 0958939526
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -72,6 +72,8 @@ class AudioSpectrumView : public View {
class FrequencyScale : public Widget {
public:
/* Receives a frequency offset in Hz for key/touch selection. With live
* tuning enabled, encoder events instead pass the raw encoder delta. */
std::function<void(int32_t offset)> on_select{};
void on_show() override;
@@ -51,6 +51,12 @@ bool FilteredSpectrumCollector::feed(
sampling_rate_ = channel.sampling_rate / capture_decimation_;
capture_ready_ = true;
EventDispatcher::events_flag(EVT_MASK_SPECTRUM);
if (is_streaming()) {
capture_ready_ = true;
EventDispatcher::events_flag(EVT_MASK_SPECTRUM);
} else {
capture_ready_ = false;
}
return true;
}
return false;
+1
View File
@@ -51,6 +51,7 @@ class SpectrumCollector {
const int32_t filter_transition);
protected:
bool is_streaming() const { return streaming; }
void set_filter(
const int32_t filter_low_frequency,
const int32_t filter_high_frequency,