From 9097d53f3ef1b6b8351b8c6ff3db679fc314598d Mon Sep 17 00:00:00 2001 From: Lenni0451 <20379977+Lenni0451@users.noreply.github.com> Date: Wed, 8 May 2024 16:10:42 +0200 Subject: [PATCH] Renamed bit depth tp pcm bit depth --- .../java/net/raphimc/noteblocktool/frames/ExportFrame.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/raphimc/noteblocktool/frames/ExportFrame.java b/src/main/java/net/raphimc/noteblocktool/frames/ExportFrame.java index 5519edf..8be0e11 100644 --- a/src/main/java/net/raphimc/noteblocktool/frames/ExportFrame.java +++ b/src/main/java/net/raphimc/noteblocktool/frames/ExportFrame.java @@ -61,8 +61,8 @@ public class ExportFrame extends JFrame { private final JComboBox soundSystem = new JComboBox<>(new String[]{"OpenAL (better sound quality)", "Javax (faster, normalized, multithreaded, mono only)"}); private final JLabel sampleRateLabel = new JLabel("Sample Rate:"); private final JSpinner sampleRate = new JSpinner(new SpinnerNumberModel(44_100, 8_000, 192_000, 1_000)); - private final JLabel bitDepthLabel = new JLabel("Bit Depth:"); - private final JComboBox bitDepth = new JComboBox<>(new String[]{"8", "16", "32"}); + private final JLabel bitDepthLabel = new JLabel("PCM Bit Depth:"); + private final JComboBox bitDepth = new JComboBox<>(new String[]{"PCM 8", "PCM 16", "PCM 32"}); private final JLabel channelsLabel = new JLabel("Channels:"); private final JComboBox channels = new JComboBox<>(new String[]{"Mono", "Stereo"}); private JPanel progressPanel; @@ -261,7 +261,7 @@ private void doExport(final File outFile) { AudioFormat format = new AudioFormat( ((Number) this.sampleRate.getValue()).floatValue(), - Integer.parseInt(this.bitDepth.getSelectedItem().toString()), + Integer.parseInt(this.bitDepth.getSelectedItem().toString().substring(4)), this.soundSystem.getSelectedIndex() == 1 ? 1 : this.channels.getSelectedIndex() + 1, true, false