summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/DuplexPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-19 16:59:01 +0000
committerDavid Robillard <d@drobilla.net>2006-06-19 16:59:01 +0000
commite313072faaf8efb578843fc5c8bdbcaf7f90acb2 (patch)
tree92e93bed696cb3c55d690ebfa2fd61e1d91f43f2 /src/libs/engine/DuplexPort.cpp
parent2db1897709eba0e80677bd09e8444e7320e15120 (diff)
downloadingen-e313072faaf8efb578843fc5c8bdbcaf7f90acb2.tar.gz
ingen-e313072faaf8efb578843fc5c8bdbcaf7f90acb2.tar.bz2
ingen-e313072faaf8efb578843fc5c8bdbcaf7f90acb2.zip
Added missing DuplexPot files
git-svn-id: http://svn.drobilla.net/lad/grauph@63 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/DuplexPort.cpp')
-rw-r--r--src/libs/engine/DuplexPort.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/libs/engine/DuplexPort.cpp b/src/libs/engine/DuplexPort.cpp
new file mode 100644
index 00000000..27be5056
--- /dev/null
+++ b/src/libs/engine/DuplexPort.cpp
@@ -0,0 +1,46 @@
+/* This file is part of Om. Copyright (C) 2006 Dave Robillard.
+ *
+ * Om is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option) any later
+ * version.
+ *
+ * Om is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include "DuplexPort.h"
+#include <iostream>
+#include <cstdlib>
+#include <cassert>
+#include "TypedConnection.h"
+#include "OutputPort.h"
+#include "Node.h"
+#include "Om.h"
+#include "util.h"
+
+using std::cerr; using std::cout; using std::endl;
+
+
+namespace Om {
+
+
+template <typename T>
+DuplexPort<T>::DuplexPort(Node* parent, const string& name, size_t index, size_t poly, DataType type, size_t buffer_size, bool is_output)
+: TypedPort<T>(parent, name, index, poly, type, buffer_size)
+, InputPort<T>(parent, name, index, poly, type, buffer_size)
+, OutputPort<T>(parent, name, index, poly, type, buffer_size)
+, _is_output(is_output)
+{
+}
+template DuplexPort<sample>::DuplexPort(Node* parent, const string& name, size_t index, size_t poly, DataType type, size_t buffer_size, bool is_output);
+template DuplexPort<MidiMessage>::DuplexPort(Node* parent, const string& name, size_t index, size_t poly, DataType type, size_t buffer_size, bool is_output);
+
+
+} // namespace Om
+