summaryrefslogtreecommitdiff
path: root/orkaudio/AudioCapturePlugin.h
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2005-10-20 13:40:58 +0000
committerHenri Herscher <henri@oreka.org>2005-10-20 13:40:58 +0000
commit7e1d63dd9fd149e4934bf77095c8610fac786b04 (patch)
tree5fe486a1b0300c3b84fb559107a868e5cc2c95da /orkaudio/AudioCapturePlugin.h
parent467768fc956fc3e5a253373f26c71c681b31b6b8 (diff)
First checkin
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@2 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/AudioCapturePlugin.h')
-rw-r--r--orkaudio/AudioCapturePlugin.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/orkaudio/AudioCapturePlugin.h b/orkaudio/AudioCapturePlugin.h
new file mode 100644
index 0000000..b3469ec
--- /dev/null
+++ b/orkaudio/AudioCapturePlugin.h
@@ -0,0 +1,47 @@
+/*
+ * Oreka -- A media capture and retrieval platform
+ *
+ * Copyright (C) 2005, orecx LLC
+ *
+ * http://www.orecx.com
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License.
+ * Please refer to http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+#ifndef __AUDIOCAPTUREPLUGIN_H__
+#define __AUDIOCAPTUREPLUGIN_H__
+
+#include "AudioCapture.h"
+#include "LogManager.h"
+#include "xercesc/dom/DOMNode.hpp"
+
+using namespace XERCES_CPP_NAMESPACE;
+
+#ifdef WIN32
+#define __CDECL__ __cdecl
+#else
+#define __CDECL__
+#endif
+
+#define AUDIO_CAPTURE_PLUGIN_INTERFACE_VERSION 1
+
+// Callback definitions
+typedef void (__CDECL__*AudioChunkCallBackFunction)(AudioChunkRef, CStdString& capturePort, bool remote = false);
+typedef void (__CDECL__*CaptureEventCallBackFunction)(CaptureEventRef, CStdString& capturePort);
+
+
+// Exported functions definitions
+typedef void (__CDECL__* RegisterCallBacksFunction)(AudioChunkCallBackFunction, CaptureEventCallBackFunction, LogManager*);
+typedef void (__CDECL__* InitializeFunction)();
+typedef void (__CDECL__* RunFunction)();
+typedef void (__CDECL__* ConfigureFunction)(DOMNode*);
+typedef void (__CDECL__* StartCaptureFunction)(CStdString& port);
+typedef void (__CDECL__* StopCaptureFunction)(CStdString& port);
+
+
+
+#endif
+