diff --git a/src/main/java/net/raphimc/noteblocktool/audio/soundsystem/impl/JavaxSoundSystem.java b/src/main/java/net/raphimc/noteblocktool/audio/soundsystem/impl/JavaxSoundSystem.java index ed1a806..685c9ed 100644 --- a/src/main/java/net/raphimc/noteblocktool/audio/soundsystem/impl/JavaxSoundSystem.java +++ b/src/main/java/net/raphimc/noteblocktool/audio/soundsystem/impl/JavaxSoundSystem.java @@ -45,7 +45,7 @@ public JavaxSoundSystem(final float playbackSpeed) { try { this.sounds = SoundMap.loadInstrumentSamples(FORMAT); - this.samplesPerTick = (int) (FORMAT.getSampleRate() / playbackSpeed * FORMAT.getChannels()); + this.samplesPerTick = (int) (FORMAT.getSampleRate() / playbackSpeed) * FORMAT.getChannels(); this.dataLine = AudioSystem.getSourceDataLine(FORMAT); this.dataLine.open(FORMAT, (int) FORMAT.getSampleRate()); this.dataLine.start();