mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-15 19:28:48 -05:00
Fix audioClip converting
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace AssetStudio
|
||||
{
|
||||
public static partial class MathHelper
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static float Clamp(float value, float minValue, float maxValue)
|
||||
{
|
||||
#if NETFRAMEWORK
|
||||
return Math.Max(minValue, Math.Min(value, maxValue));
|
||||
#else
|
||||
return Math.Clamp(value, minValue, maxValue);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user