From 9ed6efc808cb57555f89f08475df70fd4f8b630b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Nov 2006 01:00:47 +0000 Subject: Fixes for building without ALSA (eg on OSX) git-svn-id: http://svn.drobilla.net/lad/patchage@200 a436a847-0d15-0410-975c-d299462d15a1 --- src/Patchage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Patchage.cpp') diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 02fdd5b..b11b255 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -153,8 +153,10 @@ Patchage::Patchage(int argc, char** argv) m_menu_lash_connect->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_lash_connect)); m_menu_lash_disconnect->signal_activate().connect(sigc::mem_fun(this, &Patchage::menu_lash_disconnect)); #endif +#ifdef HAVE_ALSA m_menu_alsa_connect->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_alsa_connect)); m_menu_alsa_disconnect->signal_activate().connect(sigc::mem_fun(this, &Patchage::menu_alsa_disconnect)); +#endif m_menu_store_positions->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_store_positions)); m_menu_file_quit->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_file_quit)); m_menu_view_refresh->signal_activate().connect( sigc::mem_fun(this, &Patchage::menu_view_refresh)); @@ -339,7 +341,8 @@ Patchage::attach_menu_items() sigc::mem_fun(m_menu_jack_connect, &Gtk::MenuItem::set_sensitive), true)); m_jack_driver->signal_detached.connect(sigc::bind( sigc::mem_fun(m_menu_jack_disconnect, &Gtk::MenuItem::set_sensitive), false)); - + +#ifdef HAVE_ALSA m_alsa_driver->signal_attached.connect(sigc::bind( sigc::mem_fun(m_menu_alsa_connect, &Gtk::MenuItem::set_sensitive), false)); m_alsa_driver->signal_attached.connect(sigc::bind( @@ -349,6 +352,7 @@ Patchage::attach_menu_items() sigc::mem_fun(m_menu_alsa_connect, &Gtk::MenuItem::set_sensitive), true)); m_alsa_driver->signal_detached.connect(sigc::bind( sigc::mem_fun(m_menu_alsa_disconnect, &Gtk::MenuItem::set_sensitive), false)); +#endif } -- cgit v1.2.1