From 98580fc1576a94f92a94f4dcf9a0a871e6eeb90d Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Wed, 27 Sep 2023 11:32:33 -0400 Subject: [PATCH] com.utilities.encoder.wav 1.0.6 (#9) - fixed an issue with default .ctr being stripped from builds --- Runtime/WavEncoder.cs | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Runtime/WavEncoder.cs b/Runtime/WavEncoder.cs index c68462c..e3e92cf 100644 --- a/Runtime/WavEncoder.cs +++ b/Runtime/WavEncoder.cs @@ -6,6 +6,7 @@ using System.Threading; using System.Threading.Tasks; using UnityEngine; +using UnityEngine.Scripting; using Utilities.Async; using Utilities.Audio; using Microphone = Utilities.Audio.Microphone; @@ -14,6 +15,9 @@ namespace Utilities.Encoding.Wav { public class WavEncoder : IEncoder { + [Preserve] + public WavEncoder() { } + public async Task> StreamSaveToDiskAsync(AudioClip clip, string saveDirectory, CancellationToken cancellationToken, Action> callback = null, [CallerMemberName] string callingMethodName = null) { if (callingMethodName != nameof(RecordingManager.StartRecordingAsync)) diff --git a/package.json b/package.json index 325d6be..d6e8b73 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Utilities.Encoder.Wav", "description": "Simple library for WAV encoding support.", "keywords": [], - "version": "1.0.5", + "version": "1.0.6", "unity": "2021.3", "documentationUrl": "https://github.com/RageAgainstThePixel/com.utilities.encoder.wav#documentation", "changelogUrl": "https://github.com/RageAgainstThePixel/com.utilities.encoder.wav/releases",