diff options
author | Henri Herscher <henri@oreka.org> | 2005-10-20 13:40:58 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2005-10-20 13:40:58 +0000 |
commit | 7e1d63dd9fd149e4934bf77095c8610fac786b04 (patch) | |
tree | 5fe486a1b0300c3b84fb559107a868e5cc2c95da /orkaudio/audiocaptureplugins/common | |
parent | 467768fc956fc3e5a253373f26c71c681b31b6b8 (diff) |
First checkin
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@2 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkaudio/audiocaptureplugins/common')
-rw-r--r-- | orkaudio/audiocaptureplugins/common/AudioCapturePluginCommon.cpp | 29 | ||||
-rw-r--r-- | orkaudio/audiocaptureplugins/common/AudioCapturePluginCommon.h | 36 |
2 files changed, 65 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/common/AudioCapturePluginCommon.cpp b/orkaudio/audiocaptureplugins/common/AudioCapturePluginCommon.cpp new file mode 100644 index 0000000..31c8503 --- /dev/null +++ b/orkaudio/audiocaptureplugins/common/AudioCapturePluginCommon.cpp @@ -0,0 +1,29 @@ +/* + * 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 + * + */ + +#define _WINSOCKAPI_ // prevents the inclusion of winsock.h + +#include "Utils.h" +#include "AudioCapturePluginCommon.h" + + +AudioChunkCallBackFunction g_audioChunkCallBack; +CaptureEventCallBackFunction g_captureEventCallBack; +LogManager* g_logManager; + +void __CDECL__ RegisterCallBacks(AudioChunkCallBackFunction audioCallBack, CaptureEventCallBackFunction captureEventCallBack, LogManager* logManager) +{ + g_audioChunkCallBack = audioCallBack; + g_captureEventCallBack = captureEventCallBack; + g_logManager = logManager; +} diff --git a/orkaudio/audiocaptureplugins/common/AudioCapturePluginCommon.h b/orkaudio/audiocaptureplugins/common/AudioCapturePluginCommon.h new file mode 100644 index 0000000..b7940ef --- /dev/null +++ b/orkaudio/audiocaptureplugins/common/AudioCapturePluginCommon.h @@ -0,0 +1,36 @@ +/* + * 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 __AUDIOCAPTUREPLUGINCOMMON_H__ +#define __AUDIOCAPTUREPLUGINCOMMON_H__ + +#include "AudioCapturePlugin.h" + +#ifdef WIN32 + #define DLL_EXPORT __declspec( dllexport ) +#else + #define DLL_EXPORT +#endif + +// Shared library exports +extern "C" // to avoid function name decoration, makes them easier to lookup +{ +DLL_EXPORT void __CDECL__ RegisterCallBacks(AudioChunkCallBackFunction, CaptureEventCallBackFunction, LogManager*); +DLL_EXPORT void __CDECL__ Run(); +DLL_EXPORT void __CDECL__ Initialize(); +DLL_EXPORT void __CDECL__ Configure(DOMNode*); +DLL_EXPORT void __CDECL__ StartCapture(CStdString& capturePort); +DLL_EXPORT void __CDECL__ StopCapture(CStdString& capturePort); +} + +#endif |