com.shinolab.autd3-sdk 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.cs +4 -11
- package/Native.cs +1 -1
- package/Plugins/linux-x64/libautd3capi.so +0 -0
- package/Plugins/osx-arm64/libautd3capi.dylib +0 -0
- package/Plugins/win-x64/autd3capi.dll +0 -0
- package/Samples~/FocusSine/FocusSineSample.cs +1 -1
- package/THIRD-PARTY-LICENSES.md +4 -4
- package/package.json +4 -4
package/Client.cs
CHANGED
|
@@ -268,28 +268,21 @@ namespace AUTD3
|
|
|
268
268
|
_geometry = geometry;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
public static Client
|
|
271
|
+
public static async Task<Client> OpenAsync(Geometry geometry, TransportOption option, CancellationToken cancellationToken = default)
|
|
272
272
|
{
|
|
273
273
|
var native = option.ToNative();
|
|
274
274
|
var owned = geometry.Clone();
|
|
275
|
-
var err = new byte[NativeAbi.ErrorBufferLength];
|
|
276
|
-
int code;
|
|
277
|
-
IntPtr value;
|
|
278
275
|
try
|
|
279
276
|
{
|
|
280
|
-
|
|
277
|
+
var value = await AsyncOps.InvokeAsync((cancel, cb, ud) =>
|
|
278
|
+
NativeClient.autd3_client_open(geometry.Handle, option.IfaceKind, option.IfaceValue, native, cancel, cb, ud), cancellationToken).ConfigureAwait(false);
|
|
279
|
+
return new Client(value, owned);
|
|
281
280
|
}
|
|
282
281
|
catch
|
|
283
282
|
{
|
|
284
283
|
owned.Dispose();
|
|
285
284
|
throw;
|
|
286
285
|
}
|
|
287
|
-
if (code != 0)
|
|
288
|
-
{
|
|
289
|
-
owned.Dispose();
|
|
290
|
-
throw Autd3Exception.FromNative(code, err);
|
|
291
|
-
}
|
|
292
|
-
return new Client(value, owned);
|
|
293
286
|
}
|
|
294
287
|
|
|
295
288
|
public int NumDevices => (int)NativeClient.autd3_client_num_devices(Handle);
|
package/Native.cs
CHANGED
|
@@ -80,7 +80,7 @@ namespace AUTD3
|
|
|
80
80
|
internal static extern void autd3_frames_free(IntPtr frames);
|
|
81
81
|
|
|
82
82
|
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
83
|
-
internal static extern
|
|
83
|
+
internal static extern void autd3_client_open(GeometryHandle geometry, byte ifaceKind, [MarshalAs(UnmanagedType.LPUTF8Str)] string? iface, TransportOptionNative option, IntPtr cancel, CompletionCallback cb, IntPtr userData);
|
|
84
84
|
|
|
85
85
|
[StructLayout(LayoutKind.Sequential)]
|
|
86
86
|
internal struct DeviceStatusNative
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -20,7 +20,7 @@ namespace AUTD3.Samples
|
|
|
20
20
|
private async void Start()
|
|
21
21
|
{
|
|
22
22
|
_geometry = new Geometry(new List<Autd3> { new Autd3(Vector3.zero) });
|
|
23
|
-
_client = Client.
|
|
23
|
+
_client = await Client.OpenAsync(_geometry, new TransportOption { Iface = Interface.Addr("[::1]:44336") });
|
|
24
24
|
await _client.SendAsync(new Clear());
|
|
25
25
|
await _client.SendAsync(new Synchronize());
|
|
26
26
|
|
package/THIRD-PARTY-LICENSES.md
CHANGED
|
@@ -1179,8 +1179,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
1179
1179
|
|
|
1180
1180
|
Used by:
|
|
1181
1181
|
|
|
1182
|
-
- autd3-rs 0.14.
|
|
1183
|
-
- autd3-rs-core 0.14.
|
|
1182
|
+
- autd3-rs 0.14.1 — https://github.com/shinolab/autd3-sdk
|
|
1183
|
+
- autd3-rs-core 0.14.1 — https://github.com/shinolab/autd3-sdk
|
|
1184
1184
|
- autd3-cpu-wire 0.14.0 — https://github.com/shinolab/autd3-sdk
|
|
1185
1185
|
|
|
1186
1186
|
```
|
|
@@ -1212,8 +1212,8 @@ SOFTWARE.
|
|
|
1212
1212
|
|
|
1213
1213
|
Used by:
|
|
1214
1214
|
|
|
1215
|
-
- autd3-ffi 0.14.
|
|
1216
|
-
- autd3-ffi-abi 0.14.
|
|
1215
|
+
- autd3-ffi 0.14.1 — https://github.com/shinolab/autd3-sdk
|
|
1216
|
+
- autd3-ffi-abi 0.14.1 — https://github.com/shinolab/autd3-sdk
|
|
1217
1217
|
- windows-link 0.2.1 — https://github.com/microsoft/windows-rs
|
|
1218
1218
|
- windows-sys 0.61.2 — https://github.com/microsoft/windows-rs
|
|
1219
1219
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "git+https://github.com/shinolab/autd3-sdk.git",
|
|
6
6
|
"directory": "bindings/unity/com.shinolab.autd3-sdk"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.14.
|
|
8
|
+
"version": "0.14.1",
|
|
9
9
|
"displayName": "AUTD3",
|
|
10
10
|
"description": "AUTD3 client, datagrams and STM (Unity binding).",
|
|
11
11
|
"unity": "6000.0",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"url": "https://github.com/shinolab"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"com.shinolab.autd3-sdk.core": "0.14.
|
|
19
|
-
"com.shinolab.autd3-sdk.pattern": "0.14.
|
|
20
|
-
"com.shinolab.autd3-sdk.modulation": "0.14.
|
|
18
|
+
"com.shinolab.autd3-sdk.core": "0.14.1",
|
|
19
|
+
"com.shinolab.autd3-sdk.pattern": "0.14.1",
|
|
20
|
+
"com.shinolab.autd3-sdk.modulation": "0.14.1"
|
|
21
21
|
},
|
|
22
22
|
"samples": [
|
|
23
23
|
{
|