From 27060ea3c827c33a35c916e05efed63d1ca82b77 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 16 Oct 2020 12:16:53 -0400 Subject: fixed sample rate issues; up to 88kS/s --- gui/wxmain.hpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'gui/wxmain.hpp') diff --git a/gui/wxmain.hpp b/gui/wxmain.hpp index 4a8914d..b8ff11d 100644 --- a/gui/wxmain.hpp +++ b/gui/wxmain.hpp @@ -20,9 +20,6 @@ class MainFrame : public wxFrame { public: MainFrame(); - - void onPaint(wxPaintEvent& pe); - void onRenderTimer(wxTimerEvent& te); void onFileNew(wxCommandEvent&); void onFileOpen(wxCommandEvent&); @@ -36,22 +33,19 @@ public: void onRunUpload(wxCommandEvent&); void onRunUnload(wxCommandEvent&); - void requestSamples(); - void updateDrawing(); + void onMeasureTimer(wxTimerEvent& te); private: - bool m_is_rendering = false; - wxTimer *m_render_timer = nullptr; + bool m_is_running = false; wxComboBox *m_device_combo = nullptr; wxStyledTextCtrl *m_text_editor = nullptr; wxControl *m_signal_area = nullptr; wxMenuItem *m_run_measure = nullptr; - wxMenuItem *m_run_measure_value = nullptr; + wxTimer *m_measure_timer = nullptr; + wxStatusBar *m_status_bar = nullptr; wxString m_open_file_path; stmdsp::device *m_device = nullptr; - std::future> m_device_samples_future; - std::vector m_device_samples; bool tryDevice(); void prepareEditor(); -- cgit v1.2.3