@@ -8,20 +8,20 @@ internal static class UtilitiesInternal
88 {
99
1010 [ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
11- public static extern float ConvertTickToPosition ( int tick , int resolution ) ;
11+ public static extern float ConvertTickToPositionInternal ( int tick , int resolution ) ;
1212
1313 [ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
1414 public static extern int ConvertSecondsToTicksInternal ( float seconds , int resolution , Tempo [ ] tempoChanges ,
1515 int tempoChangesSize , TimeSignature [ ] timeSignatures , int timeSignaturesSize ) ;
1616
1717 [ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
18- public static extern bool IsOnTheBeat ( int bpm , float currentTime , float delta ) ;
18+ public static extern bool IsOnTheBeatInternal ( int bpm , float currentTime , float delta ) ;
1919
2020 [ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
21- public static extern int RoundUpToTheNearestMultiplier ( int value , int multiplier ) ;
21+ public static extern int RoundUpToTheNearestMultiplierInternal ( int value , int multiplier ) ;
2222
2323 [ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
24- public static extern float CalculateAccuracyRatio ( int position , int currentPosition , int delta ) ;
24+ public static extern float CalculateAccuracyRatioInternal ( int position , int currentPosition , int delta ) ;
2525
2626 [ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
2727 public static extern IntPtr CalculateBeatBarsInternal ( Tempo [ ] tempoChanges , int tempoChangesSize , int resolution ,
@@ -42,7 +42,7 @@ public static class Utilities
4242 /// <param name="resolution">The resolution of the song.</param>
4343 public static float ConvertTickToPosition ( int tick , int resolution )
4444 {
45- return UtilitiesInternal . ConvertTickToPosition ( tick , resolution ) ;
45+ return UtilitiesInternal . ConvertTickToPositionInternal ( tick , resolution ) ;
4646 }
4747
4848 /// <summary>
@@ -67,7 +67,7 @@ public static int ConvertSecondsToTicks(float seconds, int resolution, Tempo[] t
6767 /// <param name="delta">The plus/minus delta to test the current time against.</param>
6868 public static bool IsOnTheBeat ( int bpm , float currentTime , float delta = 0.05f )
6969 {
70- return UtilitiesInternal . IsOnTheBeat ( bpm , currentTime , delta ) ;
70+ return UtilitiesInternal . IsOnTheBeatInternal ( bpm , currentTime , delta ) ;
7171 }
7272
7373 /// <summary>
@@ -77,7 +77,7 @@ public static bool IsOnTheBeat(int bpm, float currentTime, float delta = 0.05f)
7777 /// <param name="multiplier">The multiplier to round using.</param>
7878 public static int RoundUpToTheNearestMultiplier ( int value , int multiplier )
7979 {
80- return UtilitiesInternal . RoundUpToTheNearestMultiplier ( value , multiplier ) ;
80+ return UtilitiesInternal . RoundUpToTheNearestMultiplierInternal ( value , multiplier ) ;
8181 }
8282
8383 public static BeatBar [ ] CalculateBeatBars ( Tempo [ ] tempoChanges , int resolution = 192 , int ts = 4 ,
@@ -140,7 +140,7 @@ public static BeatBar[] CalculateBeatBars(Tempo[] tempoChanges, int resolution =
140140 /// <param name="delta">The plus/minus delta to test the current position against.</param>
141141 public static float CalculateAccuracyRatio ( int position , int currentPosition , int delta = 50 )
142142 {
143- return UtilitiesInternal . CalculateAccuracyRatio ( position , currentPosition , delta ) ;
143+ return UtilitiesInternal . CalculateAccuracyRatioInternal ( position , currentPosition , delta ) ;
144144 }
145145
146146 }
0 commit comments