summaryrefslogtreecommitdiffstats
path: root/src/PatchageEvent.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-11 17:31:37 +0000
committerDavid Robillard <d@drobilla.net>2007-07-11 17:31:37 +0000
commitb74cf92e1f101412df6071ee7c8bc5ed3fe4485e (patch)
treef233233373f71cd3a00052e137ae2f30712f3981 /src/PatchageEvent.cpp
parent6067f8f8572bd7b318d3d17f16dc192079c7e046 (diff)
downloadpatchage-b74cf92e1f101412df6071ee7c8bc5ed3fe4485e.tar.gz
patchage-b74cf92e1f101412df6071ee7c8bc5ed3fe4485e.tar.bz2
patchage-b74cf92e1f101412df6071ee7c8bc5ed3fe4485e.zip
Fix building w/o Alsa.
git-svn-id: http://svn.drobilla.net/lad/patchage@582 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r--src/PatchageEvent.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp
index 0d46c41..9450770 100644
--- a/src/PatchageEvent.cpp
+++ b/src/PatchageEvent.cpp
@@ -15,6 +15,7 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#include "../config.h"
#include "raul/SharedPtr.h"
#include "Patchage.h"
#include "PatchageCanvas.h"
@@ -29,9 +30,12 @@ PatchageEvent::find_port(const Patchage* patchage, const PortRef& ref)
if (ref.type == PortRef::NULL_PORT_REF)
return boost::shared_ptr<PatchagePort>();
+#ifdef HAVE_ALSA
if (ref.type == PortRef::ALSA_ADDR) {
return patchage->canvas()->find_port(&ref.id.alsa_addr);
- } else {
+ } else
+#endif
+ {
if (!patchage->jack_driver()->client())
return boost::shared_ptr<PatchagePort>();