minor cleanup
This commit is contained in:
parent
338e74b7d2
commit
caefbdee9b
|
@ -185,8 +185,6 @@ public class MusicController {
|
||||||
*/
|
*/
|
||||||
public static Beatmap getBeatmap() { return lastBeatmap; }
|
public static Beatmap getBeatmap() { return lastBeatmap; }
|
||||||
|
|
||||||
private static float lastBeatLength;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the progress of the current beat.
|
* Gets the progress of the current beat.
|
||||||
* @return progress as a value in [0, 1], where 0 means a beat just happend and 1 means the next beat is coming now.
|
* @return progress as a value in [0, 1], where 0 means a beat just happend and 1 means the next beat is coming now.
|
||||||
|
@ -215,19 +213,10 @@ public class MusicController {
|
||||||
if (p == null) {
|
if (p == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
lastBeatLength = beatlen;
|
|
||||||
double beatLength = beatlen * 100;
|
double beatLength = beatlen * 100;
|
||||||
return (((trackposition * 100 - time * 100) % beatLength) / beatLength);
|
return (((trackposition * 100 - time * 100) % beatLength) / beatLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the length of the last beat
|
|
||||||
* @return the length of the last beat
|
|
||||||
*/
|
|
||||||
private float getLastBeatLength() {
|
|
||||||
return lastBeatLength;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if the current track is playing.
|
* Returns true if the current track is playing.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user