projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add virtual method is_instrument() to PluginInfo (already existed for AUPluginInfo...
[ardour.git]
/
libs
/
ardour
/
plugin.cc
diff --git
a/libs/ardour/plugin.cc
b/libs/ardour/plugin.cc
index bac014df38ddfb03ee57e223be295458b129089f..cbcf9f7f7cad1675a93e7de1b54b89084c73163a 100644
(file)
--- a/
libs/ardour/plugin.cc
+++ b/
libs/ardour/plugin.cc
@@
-62,6
+62,12
@@
using namespace std;
using namespace ARDOUR;
using namespace PBD;
+bool
+PluginInfo::is_instrument () const
+{
+ return (n_inputs.n_midi() != 0) && (n_outputs.n_audio() > 0);
+}
+
Plugin::Plugin (AudioEngine& e, Session& s)
: _engine (e)
, _session (s)