summaryrefslogtreecommitdiff
path: root/drumgizmo/input/ossmidi.cc
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/input/ossmidi.cc')
-rw-r--r--drumgizmo/input/ossmidi.cc50
1 files changed, 50 insertions, 0 deletions
diff --git a/drumgizmo/input/ossmidi.cc b/drumgizmo/input/ossmidi.cc
index 16c2e2d..024415e 100644
--- a/drumgizmo/input/ossmidi.cc
+++ b/drumgizmo/input/ossmidi.cc
@@ -25,4 +25,54 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
#include "ossmidi.h"
+#include <iostream>
+
+
+OSSInputEngine::OSSInputEngine()
+{
+}
+
+OSSInputEngine::~OSSInputEngine()
+{
+}
+
+bool OSSInputEngine::init(const Instruments& instruments)
+{
+ return true;
+}
+
+void OSSInputEngine::setParm(const std::string& parm, const std::string& value)
+{
+ if(parm == "dev")
+ {
+ dev = value;
+ std::cout << "dev = " << dev << std::endl;
+ }
+}
+
+bool OSSInputEngine::start()
+{
+ return true;
+}
+
+void OSSInputEngine::stop()
+{
+}
+
+void OSSInputEngine::pre()
+{
+}
+
+void OSSInputEngine::run(size_t pos, size_t len, std::vector<event_t>& events)
+{
+}
+
+void OSSInputEngine::post()
+{
+}
+
+bool OSSInputEngine::isFreewheeling() const
+{
+ return false;
+}