@@ -68,7 +68,7 @@ public class ExportFrame extends JFrame {
6868 private final List <ListFrame .LoadedSong > loadedSongs ;
6969 private final JComboBox <String > format = new JComboBox <>(new String []{"NBS" , "MP3 (Using LAME encoder)" , "WAV" , "AIF" });
7070 private final JLabel soundSystemLabel = new JLabel ("Sound System:" );
71- private final JComboBox <String > soundSystem = new JComboBox <>(new String []{"OpenAL (best sound quality, fastest)" , "AudioMixer ( normalized)" , "Un4seen BASS" });
71+ private final JComboBox <String > soundSystem = new JComboBox <>(new String []{"OpenAL (best sound quality, fastest)" , "AudioMixer" , "AudioMixer (global normalized)" , "Un4seen BASS" });
7272 private final JLabel sampleRateLabel = new JLabel ("Sample Rate:" );
7373 private final JSpinner sampleRate = new JSpinner (new SpinnerNumberModel (48000 , 8000 , 192000 , 8000 ));
7474 private final JLabel bitDepthLabel = new JLabel ("PCM Bit Depth:" );
@@ -267,7 +267,7 @@ private File openFileChooser() {
267267 private void doExport (final File outFile ) {
268268 final boolean isAudioFile = this .format .getSelectedIndex () != 0 ;
269269 final boolean isMp3 = this .format .getSelectedIndex () == 1 ;
270- final boolean bassSoundSystem = this .soundSystem .getSelectedIndex () == 2 ;
270+ final boolean bassSoundSystem = this .soundSystem .getSelectedIndex () == 3 ;
271271 final AudioFormat format = new AudioFormat (
272272 ((Number ) this .sampleRate .getValue ()).floatValue (),
273273 !isMp3 ? Integer .parseInt (this .bitDepth .getSelectedItem ().toString ().substring (4 )) : 16 ,
@@ -413,8 +413,10 @@ private void exportSong(final ListFrame.LoadedSong song, final AudioFormat forma
413413 if (this .soundSystem .getSelectedIndex () == 0 ) {
414414 exporter = new OpenALAudioExporter (songView , format , this .volume .getValue () / 100F , progressConsumer );
415415 } else if (this .soundSystem .getSelectedIndex () == 1 ) {
416- exporter = new AudioMixerAudioExporter (songView , format , this .volume .getValue () / 100F , progressConsumer );
416+ exporter = new AudioMixerAudioExporter (songView , format , this .volume .getValue () / 100F , false , progressConsumer );
417417 } else if (this .soundSystem .getSelectedIndex () == 2 ) {
418+ exporter = new AudioMixerAudioExporter (songView , format , this .volume .getValue () / 100F , true , progressConsumer );
419+ } else if (this .soundSystem .getSelectedIndex () == 3 ) {
418420 exporter = new BassAudioExporter (songView , format , this .volume .getValue () / 100F , progressConsumer );
419421 } else {
420422 throw new UnsupportedOperationException ("Unsupported sound system: " + this .soundSystem .getSelectedIndex ());
0 commit comments