Fix hang in Audio when switching from Capture app, & bug fixes. (#1167)

* Fix hang in Audio when switching from Capture app
* Bug fixes
This commit is contained in:
Kyle Reed
2023-06-18 22:48:29 -07:00
committed by GitHub
parent 5daa0dfbb1
commit 7ebf3d3cdd
10 changed files with 78 additions and 89 deletions

View File

@@ -311,10 +311,12 @@ WaterfallWidget::WaterfallWidget(const bool cursor) {
}
void WaterfallWidget::on_show() {
// TODO: Assert that baseband is not shutdown.
baseband::spectrum_streaming_start();
}
void WaterfallWidget::on_hide() {
// TODO: Assert that baseband is not shutdown.
baseband::spectrum_streaming_stop();
}

View File

@@ -104,6 +104,10 @@ class FrequencyScale : public Widget {
void draw_filter_ranges(Painter& painter, const Rect r);
};
/* NB: These visualizations rely on having a baseband image running.
* If the baseband is shutdown or otherwise not running when interacting
* with these, they will almost certainly hang the device. */
class WaterfallView : public Widget {
public:
void on_show() override;