pull/35/head
James Ball 2020-09-30 18:43:29 +01:00
rodzic 8f4552b26b
commit d33ade4b25
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -7,7 +7,7 @@ import shapes.Shapes;
public class AudioClient {
private static final int SAMPLE_RATE = 192000;
private static final double FRAMERATE = 30;
private static final double TARGET_FRAMERATE = 30;
public static void main(String[] args) throws InterruptedException {
// TODO: Calculate weight of lines using depth.
@ -26,7 +26,7 @@ public class AudioClient {
while (true) {
AudioPlayer.updateFrame(Shapes.sortLines(camera.draw(cube)));
cube.rotate(rotation);
Thread.sleep((long) (1000 / FRAMERATE));
Thread.sleep((long) (1000 / TARGET_FRAMERATE));
}
}
}