Removed: Resample wav to 44kHz feature from GUI

This commit is contained in:
Jindra Petřík
2025-07-27 14:48:48 +02:00
parent 8f11f043ca
commit 285b4e2cc1
5 changed files with 10 additions and 6 deletions

View File

@@ -62,6 +62,9 @@ All notable changes to this project will be documented in this file.
- Quotes in tree node parameter values that need them
- The label of option "automatic deobfuscation" changed to "deobfuscate code"
### Removed
- Resample wav to 44kHz feature from GUI
## [24.0.1] - 2025-06-27
### Fixed
- [#2476] Dark interface skins identifiers highlighter visibility

View File

@@ -401,12 +401,13 @@ public class ExportDialog extends AppDialog {
resampleWavCheckBox.setVisible(false);
if (embedCheckBox.isVisible() || visibleOptionClasses.contains(SoundExportMode.class)) {
gbc.gridy++;
/*gbc.gridy++;
resampleWavCheckBox.setVisible(true);
comboPanel.add(resampleWavCheckBox, gbc);
if (Configuration.lastExportResampleWav.get()) {
resampleWavCheckBox.setSelected(true);
}
}*/
resampleWavCheckBox.setSelected(false);
}
transparentFrameBackgroundCheckBox = new JCheckBox(translate("transparentFrameBackground"));

View File

@@ -4788,7 +4788,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
this.frozen = frozen;
this.frozenButtons = frozenButtons;
this.muted = muted;
this.resample = Configuration.previewResampleSound.get();
this.resample = false; //Configuration.previewResampleSound.get();
this.mutable = mutable;
depthStateUnderCursor = null;
hilightedEdge = null;

View File

@@ -6146,7 +6146,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
previewPanel.setImageReplaceButtonVisible(false, false, false, !((SoundTag) treeItem).isReadOnly() && ((SoundTag) treeItem).importSupported(), false, false, false);
if (!(treeItem instanceof SoundStreamHeadTypeTag)) {
try {
SoundTagPlayer soundThread = new SoundTagPlayer(null, (SoundTag) treeItem, Configuration.loopMedia.get() ? Integer.MAX_VALUE : 1, true, Configuration.previewResampleSound.get());
SoundTagPlayer soundThread = new SoundTagPlayer(null, (SoundTag) treeItem, Configuration.loopMedia.get() ? Integer.MAX_VALUE : 1, true, false); // Configuration.previewResampleSound.get());
if (!Configuration.autoPlaySounds.get()) {
soundThread.pause();
}

View File

@@ -297,12 +297,12 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
resampleButton.setToolTipText(AppStrings.translate("preview.resample"));
resampleButton.setMargin(new Insets(4, 2, 2, 2));
resampleButton.addActionListener(this::resampleButtonActionPerformed);
resampleButton.setSelected(Configuration.previewResampleSound.get());
resampleButton.setSelected(false); //Configuration.previewResampleSound.get());
buttonsPanel.add(pauseButton);
buttonsPanel.add(stopButton);
buttonsPanel.add(loopButton);
buttonsPanel.add(resampleButton);
//buttonsPanel.add(resampleButton);
controlPanel.add(buttonsPanel, BorderLayout.CENTER);
progress = new JProgressBar();