We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e1b723 commit 4f5a3a9Copy full SHA for 4f5a3a9
Runtime/Core/Scripts/Animation/VoiceHandler.cs
@@ -168,7 +168,7 @@ private float GetAmplitude()
168
if (CanGetAmplitude && AudioSource.clip.loadState == AudioDataLoadState.Loaded)
169
{
170
var currentPosition = AudioSource.timeSamples;
171
- int remaining = AudioSource.clip.samples - currentPosition;
+ var remaining = AudioSource.clip.samples - currentPosition;
172
if (remaining > 0 && remaining < AUDIO_SAMPLE_LENGTH)
173
174
return 0f;
0 commit comments