*/
#include "ardour/lxvst_plugin.h"
-#include "ardour/vstfx.h"
+#include "ardour/linux_vst_support.h"
#include "lxvst_plugin_ui.h"
-#include "ardour_ui.h"
+#include "timers.h"
#include <gdk/gdkx.h>
#define LXVST_H_FIDDLE 40
bool
-LXVSTPluginUI::start_updating (GdkEventAny* ignored)
+LXVSTPluginUI::start_updating (GdkEventAny*)
{
_screen_update_connection.disconnect();
- _screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect (mem_fun(*this, &LXVSTPluginUI::resize_callback));
+ _screen_update_connection = Timers::rapid_connect (mem_fun(*this, &LXVSTPluginUI::resize_callback));
return false;
}
bool
-LXVSTPluginUI::stop_updating (GdkEventAny* ignored)
+LXVSTPluginUI::stop_updating (GdkEventAny*)
{
_screen_update_connection.disconnect();
return false;
}
void
-LXVSTPluginUI::forward_key_event (GdkEventKey* ev)
+LXVSTPluginUI::forward_key_event (GdkEventKey*)
{
std::cerr << "LXVSTPluginUI : keypress forwarding to linuxVSTs unsupported" << std::endl;
}
*/
while (!(_vst->state()->been_activated)) {
- usleep (1000);
+ Glib::usleep (1000);
}
int const id = _vst->state()->xid;
static error_handler_t gtk_error_handler;
static int
-gtk_xerror_handler (Display* disp, XErrorEvent* ev)
+gtk_xerror_handler (Display*, XErrorEvent*)
{
std::cerr << "** ERROR ** LXVSTPluginUI : Trapped an X Window System Error" << std::endl;