Skip to content

Commit ba97f92

Browse files
committed
Improved OpenAL panning
1 parent 77d889b commit ba97f92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/net/raphimc/noteblocktool/audio/soundsystem/impl/OpenALSoundSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private OpenALSoundSystem(final Map<String, byte[]> soundData, final int maxSoun
124124

125125
AL10.alDistanceModel(AL10.AL_NONE);
126126
this.checkALError("Failed to set distance model");
127-
AL10.alListener3f(AL10.AL_POSITION, 0F, 0F, 0F);
127+
AL10.alListener3f(AL10.AL_POSITION, 0F, 0F, 1F);
128128
this.checkALError("Failed to set listener position");
129129
AL10.alListenerfv(AL10.AL_ORIENTATION, new float[]{0F, 0F, -1F, 0F, 1F, 0F});
130130
this.checkALError("Failed to set listener orientation");

src/main/java/net/raphimc/noteblocktool/frames/SongPlayerFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static void close() {
8585
private final ListFrame.LoadedSong song;
8686
private final MonitoringSongPlayer songPlayer;
8787
private final Timer updateTimer;
88-
private final JComboBox<String> soundSystemComboBox = new JComboBox<>(new String[]{"OpenAL", "Un4seen BASS", "Javax (best system compatibility)", "Javax multithreaded (experimental)", "XAudio2 (best sound quality, Windows 10+ only)"});
88+
private final JComboBox<String> soundSystemComboBox = new JComboBox<>(new String[]{"OpenAL (best sound quality)", "Un4seen BASS", "Javax (best system compatibility)", "Javax multithreaded (experimental)", "XAudio2 (Windows 10+ only)"});
8989
private final JSpinner maxSoundsSpinner = new JSpinner(new SpinnerNumberModel(256, 64, 10240, 64));
9090
private final JSlider volumeSlider = new JSlider(0, 100, 50);
9191
private final JButton playStopButton = new JButton("Play");

0 commit comments

Comments
 (0)