diff --git a/Rnnoise-windows.sln b/Rnnoise-windows.sln
index e29aaca..6205909 100644
--- a/Rnnoise-windows.sln
+++ b/Rnnoise-windows.sln
@@ -7,6 +7,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rnnoise-training", "rnnoise
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rnnoise-windows", "rnnoise_windows\Rnnoise-windows.vcxproj", "{A7BC8C57-1AAB-4C5D-B1B5-4117D1621C4B}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rnnoise_dll_test", "rnnoise_dll_test\rnnoise_dll_test.vcxproj", "{223357B6-E36D-477B-A6D2-0F4B2F450D64}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rnnoise_share", "rnnoise_share\rnnoise_share.vcxproj", "{EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
@@ -31,6 +35,22 @@ Global
{A7BC8C57-1AAB-4C5D-B1B5-4117D1621C4B}.Release|x64.Build.0 = Release|x64
{A7BC8C57-1AAB-4C5D-B1B5-4117D1621C4B}.Release|x86.ActiveCfg = Release|Win32
{A7BC8C57-1AAB-4C5D-B1B5-4117D1621C4B}.Release|x86.Build.0 = Release|Win32
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}.Debug|x64.ActiveCfg = Debug|x64
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}.Debug|x64.Build.0 = Debug|x64
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}.Debug|x86.ActiveCfg = Debug|Win32
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}.Debug|x86.Build.0 = Debug|Win32
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}.Release|x64.ActiveCfg = Release|x64
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}.Release|x64.Build.0 = Release|x64
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}.Release|x86.ActiveCfg = Release|Win32
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}.Release|x86.Build.0 = Release|Win32
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}.Debug|x64.ActiveCfg = Debug|x64
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}.Debug|x64.Build.0 = Debug|x64
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}.Debug|x86.ActiveCfg = Debug|Win32
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}.Debug|x86.Build.0 = Debug|Win32
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}.Release|x64.ActiveCfg = Release|x64
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}.Release|x64.Build.0 = Release|x64
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}.Release|x86.ActiveCfg = Release|Win32
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/rnnoise_dll_test/rnnoise_dll_test.vcxproj b/rnnoise_dll_test/rnnoise_dll_test.vcxproj
new file mode 100644
index 0000000..545350b
--- /dev/null
+++ b/rnnoise_dll_test/rnnoise_dll_test.vcxproj
@@ -0,0 +1,166 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ {223357B6-E36D-477B-A6D2-0F4B2F450D64}
+ Win32Proj
+ rnnoisedlltest
+ 10.0
+
+
+
+ Application
+ true
+ v142
+ Unicode
+
+
+ Application
+ false
+ v142
+ true
+ Unicode
+
+
+ Application
+ true
+ v142
+ Unicode
+
+
+ Application
+ false
+ v142
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+ true
+
+
+ true
+
+
+ false
+
+
+
+ NotUsing
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ NDEBUG;_CONSOLE;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS
+ true
+ $(SolutionDir)unittest-tool\;$(SolutionDir)include\;%(AdditionalIncludeDirectories)
+
+
+ Console
+ true
+ true
+ true
+ $(SolutionDir)x64\Release\;%(AdditionalLibraryDirectories)
+ rnnoise.lib;%(AdditionalDependencies)
+
+
+
+
+
+
+ Level3
+ Disabled
+ true
+ WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+
+
+
+
+
+
+ Level3
+ Disabled
+ true
+ _DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+
+
+
+
+
+
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ true
+
+
+ Console
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/rnnoise_dll_test/rnnoise_dll_test.vcxproj.filters b/rnnoise_dll_test/rnnoise_dll_test.vcxproj.filters
new file mode 100644
index 0000000..ed5e853
--- /dev/null
+++ b/rnnoise_dll_test/rnnoise_dll_test.vcxproj.filters
@@ -0,0 +1,33 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;hm;inl;inc;ipp;xsd
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+
+
+ 源文件
+
+
+
+
+ 头文件
+
+
+ 头文件
+
+
+ 头文件
+
+
+
\ No newline at end of file
diff --git a/rnnoise_share/cpp.hint b/rnnoise_share/cpp.hint
new file mode 100644
index 0000000..624d3de
--- /dev/null
+++ b/rnnoise_share/cpp.hint
@@ -0,0 +1,2 @@
+#define RNNOISESHARE_API __declspec(dllexport)
+#define RNNOISESHARE_API __declspec(dllimport)
diff --git a/rnnoise_share/dllmain.cpp b/rnnoise_share/dllmain.cpp
new file mode 100644
index 0000000..cce3b49
--- /dev/null
+++ b/rnnoise_share/dllmain.cpp
@@ -0,0 +1,17 @@
+#include "rnnoise.h"
+#include "framework.h"
+BOOL APIENTRY DllMain(HMODULE hModule,
+ DWORD ul_reason_for_call,
+ LPVOID lpReserved
+)
+{
+ switch (ul_reason_for_call)
+ {
+ case DLL_PROCESS_ATTACH:
+ case DLL_THREAD_ATTACH:
+ case DLL_THREAD_DETACH:
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+ return TRUE;
+}
diff --git a/rnnoise_share/framework.h b/rnnoise_share/framework.h
new file mode 100644
index 0000000..1927043
--- /dev/null
+++ b/rnnoise_share/framework.h
@@ -0,0 +1,4 @@
+#pragma once
+
+#define WIN32_LEAN_AND_MEAN
+#include
diff --git a/rnnoise_share/rnnoise_share.cpp b/rnnoise_share/rnnoise_share.cpp
new file mode 100644
index 0000000..168c2cb
--- /dev/null
+++ b/rnnoise_share/rnnoise_share.cpp
@@ -0,0 +1,4 @@
+#include "framework.h"
+#include "rnnoise_share.h"
+
+
diff --git a/rnnoise_share/rnnoise_share.h b/rnnoise_share/rnnoise_share.h
new file mode 100644
index 0000000..4977dd2
--- /dev/null
+++ b/rnnoise_share/rnnoise_share.h
@@ -0,0 +1,8 @@
+#ifdef RNNOISESHARE_EXPORTS
+#define RNNOISESHARE_API __declspec(dllexport)
+#else
+#define RNNOISESHARE_API __declspec(dllimport)
+#endif
+
+#include "framework.h"
+#include "rnnoise.h"
diff --git a/rnnoise_share/rnnoise_share.vcxproj b/rnnoise_share/rnnoise_share.vcxproj
new file mode 100644
index 0000000..7552a43
--- /dev/null
+++ b/rnnoise_share/rnnoise_share.vcxproj
@@ -0,0 +1,197 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 16.0
+ {EC64A5B5-B50F-4CEF-9F4F-4BFA38C293FB}
+ Win32Proj
+ rnnoiseshare
+ 10.0
+
+
+
+ DynamicLibrary
+ true
+ v142
+ Unicode
+
+
+ DynamicLibrary
+ false
+ v142
+ true
+ Unicode
+
+
+ DynamicLibrary
+ true
+ v142
+ Unicode
+
+
+ DynamicLibrary
+ false
+ v142
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rnnoise
+ false
+ $(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)src\;$(SolutionDir)include\
+ $(VC_SourcePath);$(SolutionDir)src\
+
+
+ RNNOISESHARE
+ true
+
+
+ RNNOISESHARE
+ true
+
+
+ RNNOISESHARE
+ false
+
+
+
+ NotUsing
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ NDEBUG;RNNOISESHARE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;RNNOISE_BUILD;DLL_EXPORT
+ true
+
+
+
+
+ Windows
+ true
+ true
+ true
+ false
+
+
+
+
+ Use
+ Level3
+ Disabled
+ true
+ WIN32;_DEBUG;RNNOISESHARE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
+ true
+ pch.h
+
+
+ Windows
+ true
+ false
+
+
+
+
+ Use
+ Level3
+ Disabled
+ true
+ _DEBUG;RNNOISESHARE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
+ true
+ pch.h
+
+
+ Windows
+ true
+ false
+
+
+
+
+ Use
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ WIN32;NDEBUG;RNNOISESHARE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)
+ true
+ pch.h
+
+
+ Windows
+ true
+ true
+ true
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/rnnoise_share/rnnoise_share.vcxproj.filters b/rnnoise_share/rnnoise_share.vcxproj.filters
new file mode 100644
index 0000000..f5a4900
--- /dev/null
+++ b/rnnoise_share/rnnoise_share.vcxproj.filters
@@ -0,0 +1,96 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;hm;inl;inc;ipp;xsd
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+ {11af3d48-9070-469f-9a8e-3cc03ff239c5}
+
+
+
+
+
+ 源文件\rnnoise_sources
+
+
+
+
+ 头文件
+
+
+ 头文件
+
+
+ 头文件
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+
+
+ 源文件
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件\rnnoise_sources
+
+
+ 源文件
+
+
+
\ No newline at end of file
diff --git a/rnnoise_windows/Rnnoise-windows.vcxproj b/rnnoise_windows/Rnnoise-windows.vcxproj
index b8471c0..123c556 100644
--- a/rnnoise_windows/Rnnoise-windows.vcxproj
+++ b/rnnoise_windows/Rnnoise-windows.vcxproj
@@ -84,6 +84,7 @@
false
+ $(includePath);$(SolutionDir)include\;$(SolutionDir)src\;$(SolutionDir)unittest-tool\;$(ProjectDir)
@@ -135,14 +136,15 @@
- Use
+ NotUsing
Level3
MaxSpeed
true
true
true
- NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ NDEBUG;_CONSOLE;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS
true
+
Console