@@ -14,7 +14,7 @@ internal static class UtilitiesInternal
14
14
15
15
[ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
16
16
public static extern int ConvertSecondsToTicksInternal ( float seconds , int resolution , int [ ] bpmChangesKeys ,
17
- int [ ] bpmChangesValues , int bpmChangesSize ) ;
17
+ int [ ] bpmChangesValues , int bpmChangesSize , TimeSignature [ ] timeSignatures , int timeSignaturesSize ) ;
18
18
19
19
[ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
20
20
public static extern bool IsOnTheBeat ( int bpm , float currentTime , float delta ) ;
@@ -55,10 +55,12 @@ public static float ConvertTickToPosition(int tick, int resolution)
55
55
/// <param name="seconds">The seconds to generate ticks with.</param>
56
56
/// <param name="resolution">The resolution of the song.</param>
57
57
/// <param name="bpmChanges">All BPM changes within the song.</param>
58
- public static int ConvertSecondsToTicks ( float seconds , int resolution , Dictionary < int , int > bpmChanges )
58
+ /// <param name="timeSignatureChanges">All time signature changes within the song.</param>
59
+ public static int ConvertSecondsToTicks ( float seconds , int resolution , Dictionary < int , int > bpmChanges ,
60
+ TimeSignature [ ] timeSignatureChanges )
59
61
{
60
62
return UtilitiesInternal . ConvertSecondsToTicksInternal ( seconds , resolution , bpmChanges . Keys . ToArray ( ) ,
61
- bpmChanges . Values . ToArray ( ) , bpmChanges . Count ) ;
63
+ bpmChanges . Values . ToArray ( ) , bpmChanges . Count , timeSignatureChanges , timeSignatureChanges . Length ) ;
62
64
}
63
65
64
66
/// <summary>
0 commit comments