Implemented half/double time mod.

Dynamic bpm, map length in song select menu.
Fixed replay and spinner with these mods.
This commit is contained in:
Pavel Kolchev
2015-03-31 18:14:52 +03:00
parent e83e0da70f
commit 5f3ce74c64
6 changed files with 55 additions and 19 deletions

View File

@@ -279,13 +279,13 @@ public class MusicController {
* Plays the current track.
* @param loop whether or not to loop the track
*/
public static void play(boolean loop) {
public static void play(float pitch, boolean loop) {
if (trackExists()) {
trackEnded = false;
if (loop)
player.loop();
else
player.play();
player.play(pitch, 1f);
}
}