diff --git a/.gitignore b/.gitignore index ac2dec7..3d766f2 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,6 @@ DerivedData *.reapeaks +*.opendb + encoded.wav diff --git a/examples/libnyquist-examples.vcxproj/libnyquist-examples.sln b/examples/libnyquist-examples.vcxproj/v120/libnyquist-examples.sln similarity index 100% rename from examples/libnyquist-examples.vcxproj/libnyquist-examples.sln rename to examples/libnyquist-examples.vcxproj/v120/libnyquist-examples.sln diff --git a/examples/libnyquist-examples.vcxproj/libnyquist-examples.vcxproj b/examples/libnyquist-examples.vcxproj/v120/libnyquist-examples.vcxproj similarity index 100% rename from examples/libnyquist-examples.vcxproj/libnyquist-examples.vcxproj rename to examples/libnyquist-examples.vcxproj/v120/libnyquist-examples.vcxproj diff --git a/examples/libnyquist-examples.vcxproj/libnyquist-examples.vcxproj.filters b/examples/libnyquist-examples.vcxproj/v120/libnyquist-examples.vcxproj.filters similarity index 100% rename from examples/libnyquist-examples.vcxproj/libnyquist-examples.vcxproj.filters rename to examples/libnyquist-examples.vcxproj/v120/libnyquist-examples.vcxproj.filters diff --git a/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.sln b/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.sln new file mode 100644 index 0000000..c463095 --- /dev/null +++ b/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libnyquist-examples", "libnyquist-examples.vcxproj", "{C0C0C270-FB9E-4EEB-8F22-180BB2FA800B}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libnyquist", "..\..\..\libnyquist.vcxproj\v140\libnyquist.vcxproj", "{0EEC3739-F60A-4B90-8B75-9E1AFF28106A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C0C0C270-FB9E-4EEB-8F22-180BB2FA800B}.Debug|Win32.ActiveCfg = Debug|Win32 + {C0C0C270-FB9E-4EEB-8F22-180BB2FA800B}.Debug|Win32.Build.0 = Debug|Win32 + {C0C0C270-FB9E-4EEB-8F22-180BB2FA800B}.Release|Win32.ActiveCfg = Release|Win32 + {C0C0C270-FB9E-4EEB-8F22-180BB2FA800B}.Release|Win32.Build.0 = Release|Win32 + {0EEC3739-F60A-4B90-8B75-9E1AFF28106A}.Debug|Win32.ActiveCfg = Debug|Win32 + {0EEC3739-F60A-4B90-8B75-9E1AFF28106A}.Debug|Win32.Build.0 = Debug|Win32 + {0EEC3739-F60A-4B90-8B75-9E1AFF28106A}.Release|Win32.ActiveCfg = Release|Win32 + {0EEC3739-F60A-4B90-8B75-9E1AFF28106A}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.vcxproj b/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.vcxproj new file mode 100644 index 0000000..f192a14 --- /dev/null +++ b/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.vcxproj @@ -0,0 +1,90 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {C0C0C270-FB9E-4EEB-8F22-180BB2FA800B} + libnyquistexamples + + + + Application + true + v140 + MultiByte + + + Application + false + v140 + true + MultiByte + + + + + + + + + + + + + + + Level3 + Disabled + true + $(SolutionDir)../../../include;$(SolutionDir)../../../third_party;%(AdditionalIncludeDirectories) + __WINDOWS_DS__;%(PreprocessorDefinitions) + + + true + + + + + Level3 + MaxSpeed + true + true + true + $(SolutionDir)../../include;$(SolutionDir)../../third_party;%(AdditionalIncludeDirectories) + __WINDOWS_DS__;%(PreprocessorDefinitions) + + + true + true + true + + + + + + + + + + + + {0eec3739-f60a-4b90-8b75-9e1aff28106a} + false + true + false + true + false + + + + + + \ No newline at end of file diff --git a/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.vcxproj.filters b/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.vcxproj.filters new file mode 100644 index 0000000..8e6e979 --- /dev/null +++ b/examples/libnyquist-examples.vcxproj/v140/libnyquist-examples.vcxproj.filters @@ -0,0 +1,26 @@ + + + + + {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 + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + src + + + third_party + + + + + third_party + + + \ No newline at end of file diff --git a/examples/src/Main.cpp b/examples/src/Main.cpp index 5857e47..4da00c2 100644 --- a/examples/src/Main.cpp +++ b/examples/src/Main.cpp @@ -1,5 +1,5 @@ // Note to Visual Studio / Windows users: you must set the working directory manually on the project file -// to $(ProjectDir)../../ since these settings are not saved directly in project. The loader +// to $(ProjectDir)../../../ since these settings are not saved directly in project. The loader // will be unable to find the example assets unless the proper working directory is set. #if defined(_MSC_VER) diff --git a/libnyquist.vcxproj/v140/libnyquist.vcxproj b/libnyquist.vcxproj/v140/libnyquist.vcxproj index d1e8879..0e20b09 100644 --- a/libnyquist.vcxproj/v140/libnyquist.vcxproj +++ b/libnyquist.vcxproj/v140/libnyquist.vcxproj @@ -33,8 +33,6 @@ - - @@ -48,10 +46,6 @@ - - - - diff --git a/libnyquist.vcxproj/v140/libnyquist.vcxproj.filters b/libnyquist.vcxproj/v140/libnyquist.vcxproj.filters index 71458ee..4e35854 100644 --- a/libnyquist.vcxproj/v140/libnyquist.vcxproj.filters +++ b/libnyquist.vcxproj/v140/libnyquist.vcxproj.filters @@ -1,12 +1,6 @@  - - third_party\celt - - - third_party\celt - third_party\wavpack @@ -88,18 +82,6 @@ src - - third_party\mpc - - - third_party\mpc - - - third_party\mpc - - - third_party\mpc - @@ -164,17 +146,11 @@ {d40a1038-d11f-45dc-820b-e32743336269} - - {d38860a7-b4e5-4a1e-99a5-c4eac7e1c013} - {f27e7823-c56c-4e03-af63-2ef0b1e83cbd} {d839471f-71d1-471e-95e0-c33af9bb64bc} - - {5e7b9ab1-a3bf-4934-96d8-38ad1c4b08d7} - \ No newline at end of file diff --git a/src/OpusDependencies.c b/src/OpusDependencies.c index b7273d3..1550076 100644 --- a/src/OpusDependencies.c +++ b/src/OpusDependencies.c @@ -92,17 +92,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "opus/celt/rate.c" #include "opus/celt/vq.c" -// Disabled inline because of name clash of opus_custom_encoder_get_size. #include "opus/celt/celt_decoder.c" #define opus_custom_encoder_get_size opus_custom_encoder_get_size_alt #include "opus/celt/celt_encoder.c" -/* - See celt/celt_decoder.c + celt/celt_encoder.c in the project browser. - These files need to be in separate translation units due to name clashes, - unfortunately. -*/ - ///////////////// // SILK Common // /////////////////