From faf5c2a7ad093bf44829a9806b2448413eae93ca Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Sat, 1 Feb 2020 00:18:08 -0600 Subject: [PATCH] v1.0.0 --- README.md | 2 +- csharp/Example.cs | 6 ++--- dll/syntacts-c.hpp | 4 ++- .../Assets/Plugins/syntacts-c-d.dll.meta | 27 +++++++++++++++++++ 4 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 unity/SyntactsDemo/Assets/Plugins/syntacts-c-d.dll.meta diff --git a/README.md b/README.md index d68e79d..bc3086c 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Open a Terminal in a directory of your choice and run the following commands: > cd Syntacts > mkdir build && cd build > cmake .. -DCMAKE_BUILD_TYPE="Release" -> cmake --build . +> sudo cmake --build . --target install ``` This will build **Syntacts** in its entirety and it install them to your system (likely in `/user/local/...`). diff --git a/csharp/Example.cs b/csharp/Example.cs index decdb09..a2ce180 100644 --- a/csharp/Example.cs +++ b/csharp/Example.cs @@ -30,7 +30,7 @@ static void Main(string[] args) Library.LoadSignal(out loaded, "csharp"); s.PlayAll(loaded); - Sleep(loaded.length) + Sleep(loaded.length); Signal noise = new Noise(); Spatializer sp = new Spatializer(s); @@ -51,8 +51,8 @@ static void Main(string[] args) s.Dispose(); // important! } - void Sleep(double seconds) { - Thread.Sleep((int)(seconds*1000)) + static void Sleep(double seconds) { + Thread.Sleep((int)(seconds*1000)); } } diff --git a/dll/syntacts-c.hpp b/dll/syntacts-c.hpp index 13215b1..3fa0bab 100644 --- a/dll/syntacts-c.hpp +++ b/dll/syntacts-c.hpp @@ -203,4 +203,6 @@ EXPORT Handle Library_importSignal(const char* filePath, int format, int sampleR // DEBUG /////////////////////////////////////////////////////////////////////////////// -EXPORT int Debug_sigMapSize(); \ No newline at end of file +EXPORT int Debug_sigMapSize(); + +/////////////////////////////////////////////////////////////////////////////// \ No newline at end of file diff --git a/unity/SyntactsDemo/Assets/Plugins/syntacts-c-d.dll.meta b/unity/SyntactsDemo/Assets/Plugins/syntacts-c-d.dll.meta new file mode 100644 index 0000000..9d17d69 --- /dev/null +++ b/unity/SyntactsDemo/Assets/Plugins/syntacts-c-d.dll.meta @@ -0,0 +1,27 @@ +fileFormatVersion: 2 +guid: 746754809d6f6a642b10dcad4665c2ed +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + userData: + assetBundleName: + assetBundleVariant: