Skip to content

Commit d1033f1

Browse files
committed
bump version
1 parent 9f82e88 commit d1033f1

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [1.1.0]
2+
3+
- Changes
4+
- Randomization of triangle indices to generate a more randomized visulizer.
5+
16
## [1.0.0]
27

38
- Initial release.

Runtime/AudioVisualizer.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ All rights reserved.
2020
using UnityEngine;
2121
using UnityEngine.VFX;
2222
using Unity.Mathematics;
23-
using Unity.Jobs;
2423
using Unity.Collections;
25-
using Unity.Burst;
2624
using Unity.Collections.LowLevel.Unsafe;
25+
using Unity.Burst;
26+
using Unity.Jobs;
2727
using Voxell.Inspector;
2828
using Voxell.Mathx;
2929

@@ -42,7 +42,7 @@ public partial class AudioCore
4242
[Tooltip("Damping value to multiply the velocity of each triangles each frame.")]
4343
[Range(0, 1)]
4444
public float velocityMultiplier = 0.95f;
45-
public int batchSize = 100;
45+
public int batchSize = 128;
4646
[Tooltip("Randomization of triangle index, set to 0 if you don't want to randomize it.")]
4747
public uint seed;
4848
[InspectOnly] public int totalTriangles;
@@ -144,13 +144,13 @@ private void UpdateAudioVisualizer()
144144

145145
void OnDisable()
146146
{
147-
normals.Dispose();
148-
triangles.Dispose();
149-
samples.Dispose();
150-
bandDistribution.Dispose();
151-
vertices.Dispose();
152-
prevBands.Dispose();
153-
bandVelocities.Dispose();
147+
NativeUtil.DisposeArray(ref normals);
148+
NativeUtil.DisposeArray(ref triangles);
149+
NativeUtil.DisposeArray(ref samples);
150+
NativeUtil.DisposeArray(ref bandDistribution);
151+
NativeUtil.DisposeArray(ref vertices);
152+
NativeUtil.DisposeArray(ref prevBands);
153+
NativeUtil.DisposeArray(ref bandVelocities);
154154
}
155155
}
156156
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"license": "GPL v3.0",
1212
"unity": "2021.1",
1313
"unityRelease": "0f1",
14-
"version": "1.0.0",
14+
"version": "1.1.0",
1515
"dependencies": {
1616
"voxell.util": "1.1.0",
1717
"com.unity.visualeffectgraph": "10.3.2"

0 commit comments

Comments
 (0)