Skip to content

Commit

Permalink
int to var
Browse files Browse the repository at this point in the history
  • Loading branch information
arturtreiberg committed Oct 7, 2024
1 parent 9e1b723 commit 4f5a3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Core/Scripts/Animation/VoiceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4f5a3a9

Please sign in to comment.