@@ -14,7 +14,7 @@ internal static class UtilitiesInternal
1414
1515 [ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
1616 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 ) ;
1818
1919 [ DllImport ( "libRhythmGameUtilities" , CallingConvention = CallingConvention . Cdecl ) ]
2020 public static extern bool IsOnTheBeat ( int bpm , float currentTime , float delta ) ;
@@ -55,10 +55,12 @@ public static float ConvertTickToPosition(int tick, int resolution)
5555 /// <param name="seconds">The seconds to generate ticks with.</param>
5656 /// <param name="resolution">The resolution of the song.</param>
5757 /// <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 )
5961 {
6062 return UtilitiesInternal . ConvertSecondsToTicksInternal ( seconds , resolution , bpmChanges . Keys . ToArray ( ) ,
61- bpmChanges . Values . ToArray ( ) , bpmChanges . Count ) ;
63+ bpmChanges . Values . ToArray ( ) , bpmChanges . Count , timeSignatureChanges , timeSignatureChanges . Length ) ;
6264 }
6365
6466 /// <summary>
0 commit comments