From 50dadd7684f90d3f7c6c982f4a63f2d0c09f296a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 17 Oct 2006 07:39:42 +0000 Subject: Preliminary Jack transport control. git-svn-id: http://svn.drobilla.net/lad/patchage@187 a436a847-0d15-0410-975c-d299462d15a1 --- src/Patchage.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Patchage.cpp') diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 9ec444b..02fdd5b 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -115,6 +115,9 @@ Patchage::Patchage(int argc, char** argv) xml->get_widget("status_text", m_status_text); xml->get_widget("main_paned", m_main_paned); xml->get_widget("messages_expander", m_messages_expander); + xml->get_widget("rewind_but", m_rewind_button); + xml->get_widget("play_but", m_play_button); + xml->get_widget("stop_but", m_stop_button); xml->get_widget("zoom_full_but", m_zoom_full_button); xml->get_widget("zoom_normal_but", m_zoom_normal_button); @@ -125,6 +128,10 @@ Patchage::Patchage(int argc, char** argv) m_zoom_slider->signal_value_changed().connect(sigc::mem_fun(this, &Patchage::zoom_changed)); + m_rewind_button->signal_clicked().connect(sigc::mem_fun(m_jack_driver, &JackDriver::rewind_transport)); + m_play_button->signal_clicked().connect(sigc::mem_fun(m_jack_driver, &JackDriver::start_transport)); + m_stop_button->signal_clicked().connect(sigc::mem_fun(m_jack_driver, &JackDriver::stop_transport)); + m_zoom_normal_button->signal_clicked().connect(sigc::bind( sigc::mem_fun(this, &Patchage::zoom), 1.0)); @@ -197,10 +204,10 @@ Patchage::~Patchage() void Patchage::attach() { - m_jack_driver->attach(false); + m_jack_driver->attach(true); #ifdef HAVE_LASH - m_lash_driver->attach(false); + m_lash_driver->attach(true); #endif #ifdef HAVE_ALSA m_alsa_driver->attach(); -- cgit v1.2.1