From e87739158d7dfce6f9f20bc2350502df48866cb6 Mon Sep 17 00:00:00 2001 From: James Ball Date: Thu, 6 Feb 2020 11:23:05 +0000 Subject: [PATCH] Cleaned code --- src/audio/AudioPlayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/AudioPlayer.java b/src/audio/AudioPlayer.java index 9bbfd9c..c612599 100644 --- a/src/audio/AudioPlayer.java +++ b/src/audio/AudioPlayer.java @@ -31,8 +31,8 @@ public class AudioPlayer extends Thread { Shape shape = currentShape(); shape = scale(shape); - shape = rotate(shape, stream.getFormat().mix.rate); - shape = translate(shape, stream.getFormat().mix.rate); + shape = rotate(shape, format.mix.rate); + shape = translate(shape, format.mix.rate); double framesToDraw = shape.getLength() * shape.getWeight(); double drawingProgress = framesDrawn / framesToDraw;