@@ -8,20 +8,20 @@ internal static class UtilitiesInternal
8
8
{
9
9
10
10
[ 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 ) ;
12
12
13
13
[ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
14
14
public static extern int ConvertSecondsToTicksInternal ( float seconds , int resolution , Tempo [ ] tempoChanges ,
15
15
int tempoChangesSize , TimeSignature [ ] timeSignatures , int timeSignaturesSize ) ;
16
16
17
17
[ 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 ) ;
19
19
20
20
[ 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 ) ;
22
22
23
23
[ 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 ) ;
25
25
26
26
[ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
27
27
public static extern IntPtr CalculateBeatBarsInternal ( Tempo [ ] tempoChanges , int tempoChangesSize , int resolution ,
@@ -42,7 +42,7 @@ public static class Utilities
42
42
/// <param name="resolution">The resolution of the song.</param>
43
43
public static float ConvertTickToPosition ( int tick , int resolution )
44
44
{
45
- return UtilitiesInternal . ConvertTickToPosition ( tick , resolution ) ;
45
+ return UtilitiesInternal . ConvertTickToPositionInternal ( tick , resolution ) ;
46
46
}
47
47
48
48
/// <summary>
@@ -67,7 +67,7 @@ public static int ConvertSecondsToTicks(float seconds, int resolution, Tempo[] t
67
67
/// <param name="delta">The plus/minus delta to test the current time against.</param>
68
68
public static bool IsOnTheBeat ( int bpm , float currentTime , float delta = 0.05f )
69
69
{
70
- return UtilitiesInternal . IsOnTheBeat ( bpm , currentTime , delta ) ;
70
+ return UtilitiesInternal . IsOnTheBeatInternal ( bpm , currentTime , delta ) ;
71
71
}
72
72
73
73
/// <summary>
@@ -77,7 +77,7 @@ public static bool IsOnTheBeat(int bpm, float currentTime, float delta = 0.05f)
77
77
/// <param name="multiplier">The multiplier to round using.</param>
78
78
public static int RoundUpToTheNearestMultiplier ( int value , int multiplier )
79
79
{
80
- return UtilitiesInternal . RoundUpToTheNearestMultiplier ( value , multiplier ) ;
80
+ return UtilitiesInternal . RoundUpToTheNearestMultiplierInternal ( value , multiplier ) ;
81
81
}
82
82
83
83
public static BeatBar [ ] CalculateBeatBars ( Tempo [ ] tempoChanges , int resolution = 192 , int ts = 4 ,
@@ -140,7 +140,7 @@ public static BeatBar[] CalculateBeatBars(Tempo[] tempoChanges, int resolution =
140
140
/// <param name="delta">The plus/minus delta to test the current position against.</param>
141
141
public static float CalculateAccuracyRatio ( int position , int currentPosition , int delta = 50 )
142
142
{
143
- return UtilitiesInternal . CalculateAccuracyRatio ( position , currentPosition , delta ) ;
143
+ return UtilitiesInternal . CalculateAccuracyRatioInternal ( position , currentPosition , delta ) ;
144
144
}
145
145
146
146
}
0 commit comments