gui track should obey interface volume setting

This commit is contained in:
minjaesong
2024-04-01 18:07:54 +09:00
parent 576e868996
commit a1a70274dd
3 changed files with 5 additions and 3 deletions

View File

@@ -1976,7 +1976,7 @@ public class App implements ApplicationListener {
it.setCurrentTrack(sound);
it.setMaxVolumeFun(() -> volume);
it.setVolume(volume);
((BinoPan) Arrays.stream(it.getFilters()).findFirst().get()).setPan(pan);
((BinoPan) it.getFilters()[1]).setPan(pan);
it.play();
}
}
@@ -1991,7 +1991,7 @@ public class App implements ApplicationListener {
it.setCurrentTrack(sound);
it.setMaxVolumeFun(() -> volume);
it.setVolume(volume);
((BinoPan) Arrays.stream(it.getFilters()).findFirst().get()).setPan(pan);
((BinoPan) it.getFilters()[1]).setPan(pan);
it.play();
}
public static void playGUIsoundHigh(MusicContainer sound, double volume) { playGUIsoundHigh(sound, volume, 0.0f); }