summaryrefslogtreecommitdiff
path: root/audio/sysvad/APO/DelayAPO/DelayAPODll.cpp
diff options
context:
space:
mode:
authorGirish Pattabiraman <[email protected]>2018-08-13 10:54:19 -0700
committerAdonais Romero González <[email protected]>2018-08-13 10:54:19 -0700
commit2af3e666d01a60568c2875b4ccbd56b122ad714f (patch)
tree29825a7b7cb0f6a9f77f1ab6e5813665d45ca4cc /audio/sysvad/APO/DelayAPO/DelayAPODll.cpp
parent181c180357cdf9a04d5e3bb21a8e86dc2155ca69 (diff)
Update sample to get ready for RS4 changes - merge pre-RS4 fixes. (#256)
* Format Changes ============== * Add KSEVENT_PINCAPS_FORMATCHANGE to Bluetooth HFP Endpoints * Remove 8 bit formats from Bluetooth HFP Endpoints Name Template ============== * Bluetooth Endpoints are now based on templates in INF and then customized with endpoints specific data Sideband Common Interface for future Sideband buses =================================================== * Add ISidebandDevice * Add current directory to TabletAudioSample include path. Remove unused compiler flags. * RS4 bug fixes
Diffstat (limited to 'audio/sysvad/APO/DelayAPO/DelayAPODll.cpp')
-rw-r--r--audio/sysvad/APO/DelayAPO/DelayAPODll.cpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/audio/sysvad/APO/DelayAPO/DelayAPODll.cpp b/audio/sysvad/APO/DelayAPO/DelayAPODll.cpp
new file mode 100644
index 00000000..fe49a000
--- /dev/null
+++ b/audio/sysvad/APO/DelayAPO/DelayAPODll.cpp
@@ -0,0 +1,70 @@
+//
+// DelayAPODll.cpp -- Copyright (c) Microsoft Corporation. All rights reserved.
+//
+// Author:
+//
+// Description:
+//
+// DelayAPODll.cpp : Implementation of DLL Exports.
+
+#include <atlbase.h>
+#include <atlcom.h>
+#include <atlcoll.h>
+#include <atlsync.h>
+#include <mmreg.h>
+
+#include "resource.h"
+#include "DelayAPODll.h"
+#include <DelayAPO.h>
+
+#include <DelayAPODll_i.c>
+
+//-------------------------------------------------------------------------
+// Array of APO_REG_PROPERTIES structures implemented in this module.
+// Each new APO implementation will be added to this array.
+//
+APO_REG_PROPERTIES const *gCoreAPOs[] =
+{
+ &CDelayAPOMFX::sm_RegProperties.m_Properties,
+ &CDelayAPOSFX::sm_RegProperties.m_Properties
+};
+
+// {secret}
+class CDelayAPODllModule : public CAtlDllModuleT< CDelayAPODllModule >
+{
+public :
+ DECLARE_LIBID(LIBID_DelayAPODlllib)
+ DECLARE_REGISTRY_APPID_RESOURCEID(IDR_DELAYAPODLL, "{0A21D954-674A-4C09-806E-DB4FBE8F199C}")
+};
+
+// {secret}
+CDelayAPODllModule _AtlModule;
+
+
+// {secret}
+extern "C" BOOL WINAPI DllMain(HINSTANCE /* hInstance */, DWORD dwReason, LPVOID lpReserved)
+{
+ if (DLL_PROCESS_ATTACH == dwReason)
+ {
+ }
+ // do necessary cleanup only if the DLL is being unloaded dynamically
+ else if ((DLL_PROCESS_DETACH == dwReason) && (NULL == lpReserved))
+ {
+ }
+
+ return _AtlModule.DllMain(dwReason, lpReserved);
+}
+
+
+// {secret}
+STDAPI DllCanUnloadNow(void)
+{
+ return _AtlModule.DllCanUnloadNow();
+}
+
+
+// {secret}
+STDAPI DllGetClassObject(_In_ REFCLSID rclsid,_In_ REFIID riid, _Outptr_ LPVOID* ppv)
+{
+ return _AtlModule.DllGetClassObject(rclsid, riid, ppv);
+}