@@ -16,7 +16,7 @@ internal static class UtilitiesInternal
16
16
#elif LINUX_BUILD || UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
17
17
[ DllImport ( "libRhythmGameUtilities.so" , CallingConvention = CallingConvention . Cdecl ) ]
18
18
#endif
19
- public static extern float ConvertTickToPosition ( float tick , int resolution ) ;
19
+ public static extern float ConvertTickToPosition ( int tick , int resolution ) ;
20
20
21
21
#if WINDOWS_BUILD || UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
22
22
[ DllImport ( "libRhythmGameUtilities.dll" , CallingConvention = CallingConvention . Cdecl ) ]
@@ -35,7 +35,7 @@ public static extern int ConvertSecondsToTicksInternal(float seconds, int resolu
35
35
#elif LINUX_BUILD || UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
36
36
[ DllImport ( "libRhythmGameUtilities.so" , CallingConvention = CallingConvention . Cdecl ) ]
37
37
#endif
38
- public static extern bool IsOnTheBeat ( float bpm , float currentTime ) ;
38
+ public static extern bool IsOnTheBeat ( int bpm , float currentTime ) ;
39
39
40
40
#if WINDOWS_BUILD || UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
41
41
[ DllImport ( "libRhythmGameUtilities.dll" , CallingConvention = CallingConvention . Cdecl ) ]
@@ -79,7 +79,7 @@ public static class Utilities
79
79
///
80
80
/// <param name="tick">The tick.</param>
81
81
/// <param name="resolution">The resolution of the song.</param>
82
- public static float ConvertTickToPosition ( float tick , int resolution )
82
+ public static float ConvertTickToPosition ( int tick , int resolution )
83
83
{
84
84
return UtilitiesInternal . ConvertTickToPosition ( tick , resolution ) ;
85
85
}
@@ -103,7 +103,7 @@ public static int ConvertSecondsToTicks(float seconds, int resolution, Dictionar
103
103
///
104
104
/// <param name="bpm">The base BPM for a song.</param>
105
105
/// <param name="currentTime">A timestamp to compare to the BPM.</param>
106
- public static bool IsOnTheBeat ( float bpm , float currentTime )
106
+ public static bool IsOnTheBeat ( int bpm , float currentTime )
107
107
{
108
108
return UtilitiesInternal . IsOnTheBeat ( bpm , currentTime ) ;
109
109
}
0 commit comments