From 4f5a3a96377668d1ec69b1dcbd3f67a1c04b2473 Mon Sep 17 00:00:00 2001 From: arturtreiberg Date: Mon, 7 Oct 2024 11:59:36 +0300 Subject: [PATCH] int to var --- Runtime/Core/Scripts/Animation/VoiceHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Core/Scripts/Animation/VoiceHandler.cs b/Runtime/Core/Scripts/Animation/VoiceHandler.cs index 4b19a8c3..61e59a68 100644 --- a/Runtime/Core/Scripts/Animation/VoiceHandler.cs +++ b/Runtime/Core/Scripts/Animation/VoiceHandler.cs @@ -168,7 +168,7 @@ private float GetAmplitude() if (CanGetAmplitude && AudioSource.clip.loadState == AudioDataLoadState.Loaded) { var currentPosition = AudioSource.timeSamples; - int remaining = AudioSource.clip.samples - currentPosition; + var remaining = AudioSource.clip.samples - currentPosition; if (remaining > 0 && remaining < AUDIO_SAMPLE_LENGTH) { return 0f;