mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-14 04:04:34 +00:00
Display modal error when RecordView experiences an error.
This commit is contained in:
parent
9dc12fca3c
commit
8de12ff570
@ -139,6 +139,10 @@ AnalogAudioView::AnalogAudioView(
|
|||||||
this->on_headphone_volume_changed(v);
|
this->on_headphone_volume_changed(v);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
record_view.on_error = [&nav](std::string message) {
|
||||||
|
nav.push<ModalMessageView>(message);
|
||||||
|
};
|
||||||
|
|
||||||
audio::output::start();
|
audio::output::start();
|
||||||
|
|
||||||
update_modulation(static_cast<ReceiverModel::Mode>(modulation));
|
update_modulation(static_cast<ReceiverModel::Mode>(modulation));
|
||||||
|
@ -70,6 +70,9 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
|
|||||||
receiver_model.enable();
|
receiver_model.enable();
|
||||||
|
|
||||||
record_view.set_sampling_rate(sampling_rate / 8);
|
record_view.set_sampling_rate(sampling_rate / 8);
|
||||||
|
record_view.on_error = [&nav](std::string message) {
|
||||||
|
nav.push<ModalMessageView>(message);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
CaptureAppView::~CaptureAppView() {
|
CaptureAppView::~CaptureAppView() {
|
||||||
|
Loading…
Reference in New Issue
Block a user