From 1e491591c3fc0410689d5d5c9044259e990413e0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 13 Jun 2024 21:07:11 +0200 Subject: [PATCH] VST3: move runloop into backend (3/3) - old remove API --- libs/ardour/ardour/vst3_plugin.h | 10 ---------- libs/ardour/vst3_plugin.cc | 19 ------------------- 2 files changed, 29 deletions(-) diff --git a/libs/ardour/ardour/vst3_plugin.h b/libs/ardour/ardour/vst3_plugin.h index 6f1de4792a..fa8dfb6cbc 100644 --- a/libs/ardour/ardour/vst3_plugin.h +++ b/libs/ardour/ardour/vst3_plugin.h @@ -100,9 +100,6 @@ public: IPlugView* view (); void close_view (); void update_contoller_param (); -#if SMTG_OS_LINUX - void set_runloop (Linux::IRunLoop*); -#endif PBD::Signal2 OnResizeView; tresult PLUGIN_API queryInterface (const TUID _iid, void** obj) SMTG_OVERRIDE; @@ -279,10 +276,6 @@ private: Vst::IEditController* _controller; IPlugView* _view; -#if SMTG_OS_LINUX - Linux::IRunLoop* _run_loop; -#endif - IPtr _processor; Vst::ProcessContext _context; Glib::Threads::Mutex _process_lock; @@ -442,9 +435,6 @@ public: Steinberg::IPlugView* view (); void close_view (); void update_contoller_param (); -#if SMTG_OS_LINUX - void set_runloop (Steinberg::Linux::IRunLoop*); -#endif PBD::Signal2 OnResizeView; diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index 865dabaf14..8ee813cc9f 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -507,14 +507,6 @@ VST3Plugin::close_view () _plug->close_view (); } -#if SMTG_OS_LINUX -void -VST3Plugin::set_runloop (Steinberg::Linux::IRunLoop* run_loop) -{ - return _plug->set_runloop (run_loop); -} -#endif - void VST3Plugin::update_contoller_param () { @@ -1308,9 +1300,6 @@ VST3PI::VST3PI (std::shared_ptr m, std::string unique_ , _component (0) , _controller (0) , _view (0) -#if SMTG_OS_LINUX - , _run_loop (0) -#endif , _is_loading_state (false) , _is_processing (false) , _block_size (0) @@ -3390,14 +3379,6 @@ VST3PI::has_editor () const return rv; } -#if SMTG_OS_LINUX -void -VST3PI::set_runloop (Linux::IRunLoop* run_loop) -{ - _run_loop = run_loop; -} -#endif - tresult VST3PI::resizeView (IPlugView* view, ViewRect* new_size) {